Skip to content

Commit

Permalink
PM / Hibernate: Fix block_io.c printk warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Rafael J. Wysocki committed May 10, 2010
1 parent 6f612af commit 0fef8b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/power/block_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0fef8b1

Please sign in to comment.