diff options
author | Joe Perches <joe@perches.com> | 2011-06-13 10:42:49 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-06-13 10:42:49 +0200 |
commit | 08e8138adebdd511e0955e8d6c051904bb4082af (patch) | |
tree | f73e9adc3e0164bf427f297312dff95c370db5ee /block/blk-throttle.c | |
parent | fdd514e16bb2531c0c61ae8a1f87740ce217f630 (diff) | |
download | linux-3.10-08e8138adebdd511e0955e8d6c051904bb4082af.tar.gz linux-3.10-08e8138adebdd511e0955e8d6c051904bb4082af.tar.bz2 linux-3.10-08e8138adebdd511e0955e8d6c051904bb4082af.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index a62be8d0dc1..3689f833afd 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], |