diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-04-28 12:38:33 +0900 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-28 20:24:20 +0200 |
commit | 0d9f346fb0cd6d6fc70827c5396a0d83939530e4 (patch) | |
tree | d24a2705318635f9b2e5c688cf9a34a2334588a6 | |
parent | 39f36b47caae1443eb37c34c6def108bb79f8d25 (diff) | |
download | op-kernel-dev-0d9f346fb0cd6d6fc70827c5396a0d83939530e4.zip op-kernel-dev-0d9f346fb0cd6d6fc70827c5396a0d83939530e4.tar.gz |
mg_disk: fix CONFIG_LBD=y warning
drivers/block/mg_disk.c: In function ‘mg_dump_status’:
drivers/block/mg_disk.c:265: warning: format ‘%ld’ expects type ‘long int’, but
argument 2 has type ‘sector_t’
[ Impact: kill build warning ]
Cc: unsik Kim <donari75@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r-- | drivers/block/mg_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/mg_disk.c b/drivers/block/mg_disk.c index d3e72ad..f389835 100644 --- a/drivers/block/mg_disk.c +++ b/drivers/block/mg_disk.c @@ -79,7 +79,7 @@ static void mg_dump_status(const char *msg, unsigned int stat, if (host->breq) { req = elv_next_request(host->breq); if (req) - printk(", sector=%ld", req->sector); + printk(", sector=%u", (u32)req->sector); } } |