Commit 0fef8b1e authored by Randy Dunlap's avatar Randy Dunlap Committed by Rafael J. Wysocki

PM / Hibernate: Fix block_io.c printk warning

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: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent 6f612af5
...@@ -37,8 +37,8 @@ static int submit(int rw, struct block_device *bdev, sector_t sector, ...@@ -37,8 +37,8 @@ static int submit(int rw, struct block_device *bdev, sector_t sector,
bio->bi_end_io = end_swap_bio_read; bio->bi_end_io = end_swap_bio_read;
if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) { if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) {
printk(KERN_ERR "PM: Adding page to bio failed at %ld\n", printk(KERN_ERR "PM: Adding page to bio failed at %llu\n",
sector); (unsigned long long)sector);
bio_put(bio); bio_put(bio);
return -EFAULT; return -EFAULT;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment