Commit 145046d3 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] parport: fix printk format warning

Fix printk format warning:
drivers/parport/probe.c:205: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarArnaud Giersch <arnaud.giersch@free.fr>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent de6c642c
...@@ -199,7 +199,7 @@ static ssize_t parport_read_device_id (struct parport *port, char *buffer, ...@@ -199,7 +199,7 @@ static ssize_t parport_read_device_id (struct parport *port, char *buffer,
if (port->physport->ieee1284.phase != IEEE1284_PH_HBUSY_DAVAIL) { if (port->physport->ieee1284.phase != IEEE1284_PH_HBUSY_DAVAIL) {
if (belen != len) { 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" " while device told it would be %d"
" bytes\n", " bytes\n",
port->name, len, belen); port->name, len, belen);
...@@ -214,7 +214,7 @@ static ssize_t parport_read_device_id (struct parport *port, char *buffer, ...@@ -214,7 +214,7 @@ static ssize_t parport_read_device_id (struct parport *port, char *buffer,
if (buffer[len-1] == ';') { if (buffer[len-1] == ';') {
printk (KERN_DEBUG "%s: Device ID reading stopped" printk (KERN_DEBUG "%s: Device ID reading stopped"
" before device told data not available. " " 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, port->name, current_idlen, numidlens,
length[0], length[1]); length[0], length[1]);
goto done; goto done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment