mg_disk: fix CONFIG_LBD=y warning
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 28 Apr 2009 03:38:33 +0000 (12:38 +0900)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 28 Apr 2009 18:24:20 +0000 (20:24 +0200)
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>
drivers/block/mg_disk.c

index d3e72ad08dbe13df8323ac991535fdfa45294e26..f3898353d0a8f9dc6d328ace0e06689ae366c214 100644 (file)
@@ -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);
                        }
 
                }