PM / Hibernate: Fix block_io.c printk warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 3 May 2010 22:03:26 +0000 (00:03 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 10 May 2010 21:08:18 +0000 (23:08 +0200)
Fix printk format warning in block_io.c:

kernel/power/block_io.c:41: warning: format '%ld' expects type 'long int', but argument 2 has type 'sector_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/block_io.c

index 2a2f8ae..97024fd 100644 (file)
@@ -37,8 +37,8 @@ static int submit(int rw, struct block_device *bdev, sector_t sector,
        bio->bi_end_io = end_swap_bio_read;
 
        if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) {
-               printk(KERN_ERR "PM: Adding page to bio failed at %ld\n",
-                       sector);
+               printk(KERN_ERR "PM: Adding page to bio failed at %llu\n",
+                       (unsigned long long)sector);
                bio_put(bio);
                return -EFAULT;
        }