Skip to content

Commit

Permalink
mg_disk: fix CONFIG_LBD=y warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Jens Axboe committed Apr 28, 2009
1 parent 39f36b4 commit 0d9f346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/mg_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}
Expand Down

0 comments on commit 0d9f346

Please sign in to comment.