projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6bccf6
)
ide-tape: Buildfix when IDETAPE_DEBUG_LOG is set to 1.
author
Mark de Wever
<
[email protected]
>
Fri, 10 Oct 2008 20:39:17 +0000
(22:39 +0200)
committer
Bartlomiej Zolnierkiewicz
<
[email protected]
>
Fri, 10 Oct 2008 20:39:17 +0000
(22:39 +0200)
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 <
[email protected]
>
Acked-by: Borislav Petkov <
[email protected]
>
[bart: remove trailing whitespace]
Signed-off-by: Bartlomiej Zolnierkiewicz <
[email protected]
>
drivers/ide/ide-tape.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-tape.c
b/drivers/ide/ide-tape.c
index 3833189144edd507de0c26339ca8687ed734dedc..a373cc4142b7123128101f9e17a4214c9b250f3a 100644
(file)
--- 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,
struct request *postponed_rq = tape->postponed_rq;
u8 stat;
- debug_log(DBG_SENSE, "sector: %ld, nr_sectors: %ld,"
- " current_nr_sectors: %d\n",
- rq->sector, rq->nr_sectors, rq->current_nr_sectors);
+ debug_log(DBG_SENSE, "sector: %llu, nr_sectors: %lu,"
+ " current_nr_sectors: %u\n",
+ (unsigned long long)rq->sector, rq->nr_sectors,
+ rq->current_nr_sectors);
if (!blk_special_request(rq)) {
/* We do not support buffer cache originated requests. */