diff options
author | Mark de Wever <koraq@xs4all.nl> | 2008-10-10 16:39:17 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:17 -0400 |
commit | 730616b2026838c4535c1daf9b91b118fd7caecf (patch) | |
tree | 50041c5785ae445cca321717478bf96c988095a3 /drivers/ide | |
parent | f6bccf695431da0e9bd773550ae91b8cb9ffb227 (diff) |
ide-tape: Buildfix when IDETAPE_DEBUG_LOG is set to 1.
The format specifier for rq->sector didn't specify the proper size and
signedness. Borislav Petkov discovered that the signedness for
rq->nr_sectors and rq->current_nr_sectors also were incorrect.
Signed-off-by: Mark de Wever <koraq@xs4all.nl>
Acked-by: Borislav Petkov <petkovbb@gmail.com>
[bart: remove trailing whitespace]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-tape.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 3833189144ed..a373cc4142b7 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -978,9 +978,10 @@ static ide_startstop_t idetape_do_request(ide_drive_t *drive, | |||
978 | struct request *postponed_rq = tape->postponed_rq; | 978 | struct request *postponed_rq = tape->postponed_rq; |
979 | u8 stat; | 979 | u8 stat; |
980 | 980 | ||
981 | debug_log(DBG_SENSE, "sector: %ld, nr_sectors: %ld," | 981 | debug_log(DBG_SENSE, "sector: %llu, nr_sectors: %lu," |
982 | " current_nr_sectors: %d\n", | 982 | " current_nr_sectors: %u\n", |
983 | rq->sector, rq->nr_sectors, rq->current_nr_sectors); | 983 | (unsigned long long)rq->sector, rq->nr_sectors, |
984 | rq->current_nr_sectors); | ||
984 | 985 | ||
985 | if (!blk_special_request(rq)) { | 986 | if (!blk_special_request(rq)) { |
986 | /* We do not support buffer cache originated requests. */ | 987 | /* We do not support buffer cache originated requests. */ |