[PATCH -next] staging/speakup: fix printk format warning

Randy Dunlap randy.dunlap at oracle.com
Wed Oct 13 20:10:49 UTC 2010


From: Randy Dunlap <randy.dunlap at oracle.com>

Fix printk format warning:

drivers/staging/speakup/serialio.c:44: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'

Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>
Cc: speakup at braille.uwo.ca
---
 drivers/staging/speakup/serialio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20101012.orig/drivers/staging/speakup/serialio.c
+++ linux-next-20101012/drivers/staging/speakup/serialio.c
@@ -41,7 +41,7 @@ struct serial_state *spk_serial_init(int
 		__release_region(&ioport_resource, ser->port, 8);
 		err = synth_request_region(ser->port, 8);
 		if (err) {
-			pr_warn("Unable to allocate port at %x, errno %i", ser->port, err);
+			pr_warn("Unable to allocate port at %lx, errno %i", ser->port, err);
 			return NULL;
 		}
 	}



More information about the devel mailing list