diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-01-25 16:17:17 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-25 16:17:17 -0500 |
commit | 1c904fcfbb0d8eef92ef42b1da378b4714143e46 (patch) | |
tree | 2032fc38b4b48b548eae3fb35581143f4417185d /drivers/ide/ide-lib.c | |
parent | c2b57cdc1d2976444d451a2a2e43e11b61ed0638 (diff) |
ide: printk fix
power4:
drivers/ide/ide-lib.c: In function `ide_dump_sector':
drivers/ide/ide-lib.c:516: warning: long long unsigned int format, u64 arg (arg 2)
We don't know what type is used to implement u64 hence it must always be cast
when printed.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-lib.c')
-rw-r--r-- | drivers/ide/ide-lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-lib.c b/drivers/ide/ide-lib.c index 15736d4ce9b4..d7503c489e99 100644 --- a/drivers/ide/ide-lib.c +++ b/drivers/ide/ide-lib.c | |||
@@ -509,7 +509,8 @@ static void ide_dump_sector(ide_drive_t *drive) | |||
509 | ide_tf_read(drive, &task); | 509 | ide_tf_read(drive, &task); |
510 | 510 | ||
511 | if (lba48 || (tf->device & ATA_LBA)) | 511 | if (lba48 || (tf->device & ATA_LBA)) |
512 | printk(", LBAsect=%llu", ide_get_lba_addr(tf, lba48)); | 512 | printk(", LBAsect=%llu", |
513 | (unsigned long long)ide_get_lba_addr(tf, lba48)); | ||
513 | else | 514 | else |
514 | printk(", CHS=%d/%d/%d", (tf->lbah << 8) + tf->lbam, | 515 | printk(", CHS=%d/%d/%d", (tf->lbah << 8) + tf->lbam, |
515 | tf->device & 0xf, tf->lbal); | 516 | tf->device & 0xf, tf->lbal); |