2006-01-21 21:25:13

by Arnaud Giersch

[permalink] [raw]
Subject: [PATCH] parport: fix printk format strings

From: Arnaud Giersch <[email protected]>

Fix printk format strings.

Signed-off-by: Arnaud Giersch <[email protected]>
---

--- 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;