diff options
-rw-r--r-- | drivers/block/z2ram.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/z2ram.c b/drivers/block/z2ram.c index dcd4cfcf4126..a22e3f895947 100644 --- a/drivers/block/z2ram.c +++ b/drivers/block/z2ram.c | |||
@@ -80,8 +80,10 @@ static void do_z2_request(struct request_queue *q) | |||
80 | int err = 0; | 80 | int err = 0; |
81 | 81 | ||
82 | if (start + len > z2ram_size) { | 82 | if (start + len > z2ram_size) { |
83 | printk( KERN_ERR DEVICE_NAME ": bad access: block=%lu, count=%u\n", | 83 | pr_err(DEVICE_NAME ": bad access: block=%llu, " |
84 | blk_rq_pos(req), blk_rq_cur_sectors(req)); | 84 | "count=%u\n", |
85 | (unsigned long long)blk_rq_pos(req), | ||
86 | blk_rq_cur_sectors(req)); | ||
85 | err = -EIO; | 87 | err = -EIO; |
86 | goto done; | 88 | goto done; |
87 | } | 89 | } |