diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-05-03 18:03:26 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-05-10 17:08:18 -0400 |
commit | 0fef8b1e83c4ab08cf1304dbebcfd749caf4f187 (patch) | |
tree | e6dd2281b9e343cb95f8eed30435b6bd8190727d /kernel/power/block_io.c | |
parent | 6f612af57821c637b7eaca4374ac7b85f800d6e2 (diff) |
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: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power/block_io.c')
-rw-r--r-- | kernel/power/block_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/block_io.c b/kernel/power/block_io.c index 2a2f8aed8e59..97024fd40cd5 100644 --- a/kernel/power/block_io.c +++ b/kernel/power/block_io.c | |||
@@ -37,8 +37,8 @@ static int submit(int rw, struct block_device *bdev, sector_t sector, | |||
37 | bio->bi_end_io = end_swap_bio_read; | 37 | bio->bi_end_io = end_swap_bio_read; |
38 | 38 | ||
39 | if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) { | 39 | if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) { |
40 | printk(KERN_ERR "PM: Adding page to bio failed at %ld\n", | 40 | printk(KERN_ERR "PM: Adding page to bio failed at %llu\n", |
41 | sector); | 41 | (unsigned long long)sector); |
42 | bio_put(bio); | 42 | bio_put(bio); |
43 | return -EFAULT; | 43 | return -EFAULT; |
44 | } | 44 | } |