diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-01-18 21:36:44 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-01-18 21:36:44 +0000 |
commit | 4f8e6d3bd51e61c368acb8837f23ea3214abc806 (patch) | |
tree | 0d2e926c8b314ce16e5a7cddfd9e303bfdaa6222 /sys/arch/sparc64 | |
parent | ec7a2579b3c778537432615e59b982165728e8ee (diff) |
Print consoleness the canonical way.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/z8530tty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/z8530tty.c b/sys/arch/sparc64/dev/z8530tty.c index d45fa9c644d..79622eac199 100644 --- a/sys/arch/sparc64/dev/z8530tty.c +++ b/sys/arch/sparc64/dev/z8530tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530tty.c,v 1.13 2007/05/25 21:27:15 krw Exp $ */ +/* $OpenBSD: z8530tty.c,v 1.14 2008/01/18 21:35:54 kettenis Exp $ */ /* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */ /*- @@ -295,7 +295,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; @@ -305,14 +305,14 @@ zstty_attach(parent, self, aux) /* Set console magic to BREAK */ } if ((zst->zst_hwflags & ZS_HWFLAG_CONSOLE_OUTPUT) != 0) { - o = "output"; + i = " 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 if (zs_check_kgdb(cs, dev)) { |