From a06584ab56de23b22e04c646b77a572d81d56efc Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 25 Aug 2012 07:47:12 +0000 Subject: [PATCH] Rename the gxemul console device to "ttyu0" to match the expectations of the default MIPS /etc/ttys. Sponsored by: DARPA, AFRL --- sys/dev/gxemul/cons/gxemul_cons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/gxemul/cons/gxemul_cons.c b/sys/dev/gxemul/cons/gxemul_cons.c index bb12058510b2..a75d13779b8d 100644 --- a/sys/dev/gxemul/cons/gxemul_cons.c +++ b/sys/dev/gxemul/cons/gxemul_cons.c @@ -218,7 +218,7 @@ static void gxemul_cons_cnprobe(struct consdev *cp) { - sprintf(cp->cn_name, "gxcons"); + sprintf(cp->cn_name, "ttyu0"); cp->cn_pri = CN_NORMAL; } @@ -279,7 +279,7 @@ gxemul_cons_ttyinit(void *unused) tp = tty_alloc(&gxemul_cons_ttydevsw, NULL); tty_init_console(tp, 0); - tty_makedev(tp, NULL, "%s", "gxcons"); + tty_makedev(tp, NULL, "%s", "ttyu0"); callout_init(&gxemul_cons_callout, CALLOUT_MPSAFE); callout_reset(&gxemul_cons_callout, gxemul_cons_polltime, gxemul_cons_timeout, tp);