ide: printk fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 25 Jan 2008 21:17:17 +0000 (22:17 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 25 Jan 2008 21:17:17 +0000 (22:17 +0100)
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>
drivers/ide/ide-lib.c

index 15736d4ce9b45c12a35268f546a003f6fc4a51ef..d7503c489e99396519a877d648ae785eadc900c2 100644 (file)
@@ -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);