[MTD] fix printk warning
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun Oct 1 12:59:01 EDT 2006
Commit: 9a292308255ad381dd74541be468c4aec240a615
Parent: 8a84fc15ae5cafcc366dd85cf8e1ab2040679abc
commit 9a292308255ad381dd74541be468c4aec240a615
Author: Jeff Garzik <jeff at garzik.org>
AuthorDate: Sun Oct 1 12:16:00 2006 -0400
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sun Oct 1 17:57:26 2006 +0100
[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 at garzik.org>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/mtd_blkdevs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 6baf5fe..178b53b 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -69,7 +69,7 @@ static int do_blktrans_request(struct mt
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;
}
}
More information about the linux-mtd-cvs
mailing list