]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[MTD] fix printk warning
authorJeff Garzik <jeff@garzik.org>
Sun, 1 Oct 2006 16:16:00 +0000 (12:16 -0400)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 1 Oct 2006 16:57:26 +0000 (17:57 +0100)
gcc spits out this warning:

drivers/mtd/mtd_blkdevs.c: In function ‘do_blktrans_request’:
drivers/mtd/mtd_blkdevs.c:72: warning: format ‘%ld’ expects type ‘long int’, but argument 2 has type ‘unsigned int’

This could be fixed any number of ways, including use of BUG().
rq_data_dir() only returns 0 or 1, so this entire case is superfluous.
I did the most simple fix.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtd_blkdevs.c

index 6baf5fe142305cfa1131a0be93a838e3e803a9a4..178b53b56be91380cbbf3e1f2d46c01bd60470c1 100644 (file)
@@ -69,7 +69,7 @@ static int do_blktrans_request(struct mtd_blktrans_ops *tr,
                return 1;
 
        default:
-               printk(KERN_NOTICE "Unknown request %ld\n", rq_data_dir(req));
+               printk(KERN_NOTICE "Unknown request %u\n", rq_data_dir(req));
                return 0;
        }
 }