From 39a7e2a41aef01bd9ac893723d4222a9217c8865 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Wed, 14 Jun 1995 04:52:39 +0000 Subject: [PATCH] Output \n as \r\n, not as \n\r. --- sys/i386/i386/cons.c | 4 ++-- sys/kern/tty_cons.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/i386/i386/cons.c b/sys/i386/i386/cons.c index 1500ff20382f..7e366d840850 100644 --- a/sys/i386/i386/cons.c +++ b/sys/i386/i386/cons.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 - * $Id: cons.c,v 1.27 1995/04/24 16:42:59 bde Exp $ + * $Id: cons.c,v 1.28 1995/05/30 07:59:18 rgrimes Exp $ */ #include @@ -264,9 +264,9 @@ cnputc(c) if (cn_tab == NULL) return; if (c) { - (*cn_tab->cn_putc)(cn_tab->cn_dev, c); if (c == '\n') (*cn_tab->cn_putc)(cn_tab->cn_dev, '\r'); + (*cn_tab->cn_putc)(cn_tab->cn_dev, c); } } diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 1500ff20382f..7e366d840850 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 - * $Id: cons.c,v 1.27 1995/04/24 16:42:59 bde Exp $ + * $Id: cons.c,v 1.28 1995/05/30 07:59:18 rgrimes Exp $ */ #include @@ -264,9 +264,9 @@ cnputc(c) if (cn_tab == NULL) return; if (c) { - (*cn_tab->cn_putc)(cn_tab->cn_dev, c); if (c == '\n') (*cn_tab->cn_putc)(cn_tab->cn_dev, '\r'); + (*cn_tab->cn_putc)(cn_tab->cn_dev, c); } }