aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-10-01 12:16:00 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-10-01 12:57:26 -0400
commit9a292308255ad381dd74541be468c4aec240a615 (patch)
tree95f9fde2c45c83cdcf7ea69bd9b207e8a4417dcb
parent8a84fc15ae5cafcc366dd85cf8e1ab2040679abc (diff)
[MTD] fix printk warning
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>
-rw-r--r--drivers/mtd/mtd_blkdevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 6baf5fe14230..178b53b56be9 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -69,7 +69,7 @@ static int do_blktrans_request(struct mtd_blktrans_ops *tr,
69 return 1; 69 return 1;
70 70
71 default: 71 default:
72 printk(KERN_NOTICE "Unknown request %ld\n", rq_data_dir(req)); 72 printk(KERN_NOTICE "Unknown request %u\n", rq_data_dir(req));
73 return 0; 73 return 0;
74 } 74 }
75} 75}