From: Randy Dunlap Date: Sun, 27 Aug 2006 08:24:00 +0000 (-0700) Subject: [PATCH] cdrom/gdsc: fix printk format warning X-Git-Tag: v2.6.18-rc5~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c275a8391d96b49fa135d1e4073d4798b7c6445;p=linux-2.6 [PATCH] cdrom/gdsc: fix printk format warning Fix printk format warning: drivers/cdrom/gscd.c:269: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ Signed-off-by: Randy Dunlap Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/cdrom/gscd.c b/drivers/cdrom/gscd.c index b6ee50a291..fa70824897 100644 --- a/drivers/cdrom/gscd.c +++ b/drivers/cdrom/gscd.c @@ -266,7 +266,7 @@ repeat: goto out; if (req->cmd != READ) { - printk("GSCD: bad cmd %lu\n", rq_data_dir(req)); + printk("GSCD: bad cmd %u\n", rq_data_dir(req)); end_request(req, 0); goto repeat; }