summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-01 17:56:43 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-01 17:56:43 +0000
commit74c6e57da0132adbc16b1ba2ab2cdc43c0fff054 (patch)
tree32d75af998b0838faee9e5e70415ce91ac206603 /sys/arch/sparc
parentddd74293ddf7cc6e1fbe37171ce388820cc2ceb5 (diff)
Print consoleness the canonical way.
ok deraadt@
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/z8530tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/z8530tty.c b/sys/arch/sparc/dev/z8530tty.c
index df5096142bf..638e423e169 100644
--- a/sys/arch/sparc/dev/z8530tty.c
+++ b/sys/arch/sparc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.8 2007/05/25 21:27:15 krw Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.9 2008/03/01 17:56:42 kettenis Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -296,7 +296,7 @@ zstty_attach(parent, self, aux)
*/
i = o = NULL;
if ((zst->zst_hwflags & ZS_HWFLAG_CONSOLE_INPUT) != 0) {
- i = "input";
+ i = " input";
if ((args->hwflags & ZS_HWFLAG_USE_CONSDEV) != 0) {
args->consdev->cn_dev = dev;
cn_tab->cn_pollc = args->consdev->cn_pollc;
@@ -306,14 +306,14 @@ zstty_attach(parent, self, aux)
/* Set console magic to BREAK */
}
if ((zst->zst_hwflags & ZS_HWFLAG_CONSOLE_OUTPUT) != 0) {
- o = "output";
+ o = " output";
if ((args->hwflags & ZS_HWFLAG_USE_CONSDEV) != 0) {
cn_tab->cn_putc = args->consdev->cn_putc;
}
cn_tab->cn_dev = dev;
}
if (i != NULL || o != NULL)
- printf(" (console %s)", i ? (o ? "i/o" : i) : o);
+ printf(": console%s", i ? (o ? "" : i) : o);
#ifdef KGDB
/*