Skip to contentSkip to conversation

parport: fix printk format warning

PATCH New Randy.Dunlap 1 participant 1 message Jan 18, 2006 Parallel port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parport: fix printk format warning

From: Randy Dunlap <[email protected]>

Fix printk format warning:
drivers/parport/probe.c:205: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

---
 drivers/parport/probe.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/parport/probe.c +1 -1
@@ -199,7 +199,7 @@ 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"
+				printk (KERN_DEBUG "%s: Device ID was %zd bytes"
 					" while device told it would be %d"
 					" bytes\n",
 					port->name, len, belen);

---
~Randy