All of lore.kernel.org
 help / color / mirror / Atom feed
* LFCR instead of CRLF on serial console
@ 2001-11-29 21:57 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2001-11-29 21:57 UTC (permalink / raw)
  To: linux-kernel

The serial console code is printing LFCR at the end of the line instead of
CRLF.  While this makes no difference on a terminal(-emulator), most
editors and file viewers (including less) only recognize CRLF as DOS-style
end-of-line markers.

--- linux/drivers/char/serial.c	2001/11/16 14:23:08	1.1
+++ linux/drivers/char/serial.c	2001/11/16 14:23:35
@@ -5812,11 +5812,11 @@
 		 *	Send the character out.
 		 *	If a LF, also do CR...
 		 */
-		serial_out(info, UART_TX, *s);
 		if (*s == 10) {
-			wait_for_xmitr(info);
 			serial_out(info, UART_TX, 13);
+			wait_for_xmitr(info);
 		}
+		serial_out(info, UART_TX, *s);
 	}
 
 	/*

Andreas.

-- 
Andreas Schwab                                  "And now for something
Andreas.Schwab@suse.de				completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-29 21:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-29 21:57 LFCR instead of CRLF on serial console Andreas Schwab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.