summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-01 19:17:04 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-01 19:17:04 +0000
commit65d9117dbc0f8750434bde7f29449a9e2223d637 (patch)
tree295e443c92486ed8c1374435600c943e64964dd1 /sys/arch
parent74c6e57da0132adbc16b1ba2ab2cdc43c0fff054 (diff)
Print consoleness the canonical way.
tested by deraadt@, ok krw@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/dev/z8530tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/dev/z8530tty.c b/sys/arch/macppc/dev/z8530tty.c
index 58f54adb087..1bffdce0ff9 100644
--- a/sys/arch/macppc/dev/z8530tty.c
+++ b/sys/arch/macppc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.6 2007/05/25 21:27:15 krw Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.7 2008/03/01 19:17:03 kettenis Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -297,7 +297,7 @@ zstty_attach(struct device *parent, struct device *self, void *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;
@@ -307,14 +307,14 @@ zstty_attach(struct device *parent, struct device *self, void *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
/*