[PATCH 1/1] GTA01/GTA02 enable serial log entry when a data error occurs

Mike (mwester) mwester at dls.net
Fri Aug 8 06:12:18 CEST 2008

commit 830ea3d0c27c0c750b7bf1b56c002ee7943f3edc
Author: Mike Westerhof <mwester at dls.net>
Date:   Sun Jul 6 23:14:48 2008 -0500


    This patch causes a KERN_DEBUG message to be printed each time an
    error status is read from a UART.  This is intended to facilitate
    the reporting of more useful problem and bug reports from users
    in the field.

    Signed-off-by: Mike Westerhof <mwester at dls.net>

diff --git a/drivers/serial/s3c2410.c b/drivers/serial/s3c2410.c
index fef3c8f..5652905 100644
--- a/drivers/serial/s3c2410.c
+++ b/drivers/serial/s3c2410.c
@@ -357,7 +357,7 @@ s3c24xx_serial_rx_chars(int irq, void *dev_id)

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

                        /* check for break */

More information about the openmoko-kernel mailing list