lkml.org 
[lkml]   [2005]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 11/13] safe_serial: Clean up printk()'s in drivers/usb/serial/safe_serial.c
Fix missing KERN_ constants in buffer dump loops in drivers/usb/serial/safe_serial.c

Signed-off-by: James Nelson <james4765@gmail.com>

diff -Nurp -x dontdiff-osdl --exclude='*~' linux-2.6.11-mm1-original/drivers/usb/serial/safe_serial.c linux-2.6.11-mm1/drivers/usb/serial/safe_serial.c
--- linux-2.6.11-mm1-original/drivers/usb/serial/safe_serial.c 2005-03-05 13:29:48.000000000 -0500
+++ linux-2.6.11-mm1/drivers/usb/serial/safe_serial.c 2005-03-05 16:04:23.000000000 -0500
@@ -227,7 +227,10 @@ static void safe_read_bulk_callback (str
unsigned char *cp = port->read_urb->transfer_buffer;
for (i = 0; i < port->read_urb->actual_length; i++) {
if ((i % 32) == 0) {
- printk ("\nru[%02x] ", i);
+ if (i == 0)
+ printk (KERN_DEBUG "start");
+ printk ("\n")
+ printk (KERN_DEBUG "ru[%02x] ", i);
}
printk ("%02x ", *cp++);
}
@@ -345,7 +348,10 @@ static int safe_write (struct usb_serial
unsigned char *cp = port->write_urb->transfer_buffer;
for (i = 0; i < port->write_urb->transfer_buffer_length; i++) {
if ((i % 32) == 0) {
- printk ("\nsu[%02x] ", i);
+ if (i ==0)
+ printk (KERN_DEBUG "start");
+ printk ("\n");
+ printk (KERN_DEBUG "su[%02x] ", i);
}
printk ("%02x ", *cp++);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.056 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site