Skip to content

Commit

Permalink
ide: printk fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Bartlomiej Zolnierkiewicz committed Jan 25, 2008
1 parent c2b57cd commit 1c904fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/ide/ide-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@ static void ide_dump_sector(ide_drive_t *drive)
ide_tf_read(drive, &task);

if (lba48 || (tf->device & ATA_LBA))
printk(", LBAsect=%llu", ide_get_lba_addr(tf, lba48));
printk(", LBAsect=%llu",
(unsigned long long)ide_get_lba_addr(tf, lba48));
else
printk(", CHS=%d/%d/%d", (tf->lbah << 8) + tf->lbam,
tf->device & 0xf, tf->lbal);
Expand Down

0 comments on commit 1c904fc

Please sign in to comment.