summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-12-16 03:10:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-12-16 03:10:19 +0000
commitadfb9152e03372bce9eb0d8d7f315d2c1711c617 (patch)
treef90fead59a042e5ac5b6985a9cc875dec06bb90a /sys/arch
parent248f750ed790d98f0bb4846fee3c8e04c58db602 (diff)
shorten terminal baud rate change strings
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/stand/libsa/bioscons.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/arch/i386/stand/libsa/bioscons.c b/sys/arch/i386/stand/libsa/bioscons.c
index f441bc5fb53..825de88ea5d 100644
--- a/sys/arch/i386/stand/libsa/bioscons.c
+++ b/sys/arch/i386/stand/libsa/bioscons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bioscons.c,v 1.25 2003/11/27 00:32:45 espie Exp $ */
+/* $OpenBSD: bioscons.c,v 1.26 2003/12/16 03:10:18 deraadt Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
@@ -176,12 +176,10 @@ comspeed(dev_t dev, int sp)
return -1;
#undef divrnd
- if (cn_tab && cn_tab->cn_dev == dev && com_speed != sp)
- {
- printf("com%d: changing speed to %d baud\n\a"
- "com%d: change your terminal to match!\n\a"
- "com%d: will change speed in 5 seconds....\n\a",
- minor(dev), sp, minor(dev), minor(dev));
+ if (cn_tab && cn_tab->cn_dev == dev && com_speed != sp) {
+ printf("com%d: changing speed to %d baud in 5 seconds, "
+ "change your terminal to match!\n\a",
+ minor(dev), sp);
sleep(5);
}
@@ -189,7 +187,7 @@ comspeed(dev_t dev, int sp)
outb(comports[minor(dev)] + com_dlbl, newsp);
outb(comports[minor(dev)] + com_dlbh, newsp>>8);
outb(comports[minor(dev)] + com_cfcr, LCR_8BITS);
- printf("\ncom%d: console is at %d baud\n", minor(dev), sp);
+ printf("\ncom%d: %d baud\n", minor(dev), sp);
newsp = com_speed;
com_speed = sp;