[Linux-parport] [PATCH] parport: fix printk format strings

Arnaud Giersch arnaud.giersch at free.fr
Sat Jan 21 16:25:09 EST 2006


From: Arnaud Giersch <arnaud.giersch at free.fr>

Fix printk format strings.

Signed-off-by: Arnaud Giersch <arnaud.giersch at free.fr>
---

--- linux-2.6.16-rc1.orig/drivers/parport/probe.c	2006-01-17 08:44:47.000000000 +0100
+++ linux-2.6.16-rc1/drivers/parport/probe.c	2006-01-21 21:39:08.504248053 +0100
@@ -199,8 +199,8 @@ static ssize_t parport_read_device_id (s
 
 		if (port->physport->ieee1284.phase != IEEE1284_PH_HBUSY_DAVAIL) {
 			if (belen != len) {
-				printk (KERN_DEBUG "%s: Device ID was %d bytes"
-					" while device told it would be %d"
+				printk (KERN_DEBUG "%s: Device ID was %zu bytes"
+					" while device told it would be %u"
 					" bytes\n",
 					port->name, len, belen);
 			}
@@ -214,7 +214,7 @@ static ssize_t parport_read_device_id (s
 		if (buffer[len-1] == ';') {
  			printk (KERN_DEBUG "%s: Device ID reading stopped"
 				" before device told data not available. "
-				"Current idlen %d of %d, len bytes %02X %02X\n",
+				"Current idlen %u of %u, len bytes %02X %02X\n",
 				port->name, current_idlen, numidlens,
 				length[0], length[1]);
 			goto done;



More information about the Linux-parport mailing list