aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-06-13 10:42:49 +0200
committerJens Axboe <jaxboe@fusionio.com>2011-06-13 10:42:49 +0200
commit08e8138adebdd511e0955e8d6c051904bb4082af (patch)
treef73e9adc3e0164bf427f297312dff95c370db5ee /block/blk-throttle.c
parentfdd514e16bb2531c0c61ae8a1f87740ce217f630 (diff)
downloadkernel_samsung_smdk4412-08e8138adebdd511e0955e8d6c051904bb4082af.zip
kernel_samsung_smdk4412-08e8138adebdd511e0955e8d6c051904bb4082af.tar.gz
kernel_samsung_smdk4412-08e8138adebdd511e0955e8d6c051904bb4082af.tar.bz2
block: Add __attribute__((format(printf...) and fix fallout
Use the compiler to verify format strings and arguments. Fix fallout. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r--block/blk-throttle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index a62be8d..3689f83 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -927,7 +927,7 @@ static int throtl_dispatch(struct request_queue *q)
bio_list_init(&bio_list_on_stack);
- throtl_log(td, "dispatch nr_queued=%lu read=%u write=%u",
+ throtl_log(td, "dispatch nr_queued=%d read=%u write=%u",
total_nr_queued(td), td->nr_queued[READ],
td->nr_queued[WRITE]);
@@ -1204,7 +1204,7 @@ int blk_throtl_bio(struct request_queue *q, struct bio **biop)
}
queue_bio:
- throtl_log_tg(td, tg, "[%c] bio. bdisp=%u sz=%u bps=%llu"
+ throtl_log_tg(td, tg, "[%c] bio. bdisp=%llu sz=%u bps=%llu"
" iodisp=%u iops=%u queued=%d/%d",
rw == READ ? 'R' : 'W',
tg->bytes_disp[rw], bio->bi_size, tg->bps[rw],