Module Name: src
Committed By: nakayama
Date: Thu Mar 5 14:02:55 UTC 2015
Modified Files:
src/sys/dev: cons.c
Log Message:
Fix strange kernel output sequence "\n\r" observed in serial
consoles. Output '\r' before '\n' in conversion.
To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/dev/cons.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/cons.c
diff -u src/sys/dev/cons.c:1.73 src/sys/dev/cons.c:1.74
--- src/sys/dev/cons.c:1.73 Mon Feb 23 06:54:12 2015
+++ src/sys/dev/cons.c Thu Mar 5 14:02:55 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: cons.c,v 1.73 2015/02/23 06:54:12 mlelstv Exp $ */
+/* $NetBSD: cons.c,v 1.74 2015/03/05 14:02:55 nakayama Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.73 2015/02/23 06:54:12 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.74 2015/03/05 14:02:55 nakayama Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -322,11 +322,11 @@ cnputc(int c)
return;
if (c) {
- (*cn_tab->cn_putc)(cn_tab->cn_dev, c);
if (c == '\n') {
- docritpollhooks();
(*cn_tab->cn_putc)(cn_tab->cn_dev, '\r');
+ docritpollhooks();
}
+ (*cn_tab->cn_putc)(cn_tab->cn_dev, c);
}
}