Patch: Log message when UART errors occur

Mike (mwester) mwester at
Thu May 15 05:25:41 CEST 2008

The following patch causes the serial driver for the GTA0x devices to print an 
error message in the event of a UART error.  The primary intent  of this change 
is to assist in field problem determination by ensuring that the presence or 
absence of UART buffer overflows can be easily determined by a simple "dmesg" 

This patch is _not_ suitable for upstream.

Signed-off-by: Mike Westerhof <mwester at>
--- git/drivers/serial/s3c2410.c.orig   2008-05-11 12:27:50.000000000 -0500
+++ git/drivers/serial/s3c2410.c        2008-05-11 17:03:04.000000000 -0500
@@ -353,7 +353,7 @@ s3c24xx_serial_rx_chars(int irq, void *d

                 if (unlikely(uerstat & S3C2410_UERSTAT_ANY)) {
-                       dbg("rxerr: port ch=0x%02x, rxs=0x%08x\n",
+                       printk(KERN_ERR "rxerr: port ch=0x%02x, rxs=0x%08x\n",
                             ch, uerstat);

                         /* check for break */

More information about the openmoko-kernel mailing list