summaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-05-16 15:10:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-05-16 15:10:21 +0000
commitb06ef1b95da951218f0bb65c522b14e60c097cdb (patch)
tree578d735896939b4420a880607b3f600fb5d1b1b1 /sys/kern/tty.c
parent4bc699a226920f797d7034811ae531e68a3fe004 (diff)
panic does not require a \n at the end. When one is provided, it looks wrong.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index e8144b76ce0..169c3d1cdf7 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.167 2021/02/08 10:51:02 mpi Exp $ */
+/* $OpenBSD: tty.c,v 1.168 2021/05/16 15:10:20 deraadt Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -1953,8 +1953,8 @@ ttyrub(int c, struct tty *tp)
(void)ttyoutput('\b', tp);
break;
default: /* XXX */
-#define PANICSTR "ttyrub: would panic c = %d, val = %d\n"
- (void)printf(PANICSTR, c, CCLASS(c));
+#define PANICSTR "ttyrub: would panic c = %d, val = %d"
+ (void)printf(PANICSTR "\n", c, CCLASS(c));
#ifdef notdef
panic(PANICSTR, c, CCLASS(c));
#endif