From: Bartlomiej Zolnierkiewicz Date: Tue, 28 Apr 2009 03:38:33 +0000 (+0900) Subject: mg_disk: fix CONFIG_LBD=y warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7090a0a97f55cbf47547a140fcc5a349f32c598c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Tejun Heo --- diff --git a/drivers/block/mg_disk.c b/drivers/block/mg_disk.c index d3e72ad08db..f3898353d0a 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); } }