Skip to contentSkip to conversation

parport: fix printk format strings

PATCH New Arnaud Giersch 1 participant 1 message Jan 21, 2006 Parallel port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parport: fix printk format strings

From: Arnaud Giersch <[email protected]>

Fix printk format strings.

---

drivers/parport/probe.c +3 -3
@@ -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;