Skip to contentSkip to conversation

cdrom/gdsc: fix printk format warning

PATCH New Randy.Dunlap 1 participant 1 message Aug 26, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cdrom/gdsc: fix printk format warning

From: Randy Dunlap <[email protected]>

Fix printk format warning:
drivers/cdrom/gscd.c:269: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘unsigned int’

---
 drivers/cdrom/gscd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cdrom/gscd.c +1 -1
@@ -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;
 	}

---