Commit 7817a6f3 authored by David S. Miller's avatar David S. Miller

[PATCH] Fix IDE printf formatting

The usual "u64 is long long only on some platforms" problem.
parent 45ee0a7a
...@@ -597,7 +597,7 @@ int proc_ide_read_capacity ...@@ -597,7 +597,7 @@ int proc_ide_read_capacity
if (!driver) if (!driver)
len = sprintf(page, "(none)\n"); len = sprintf(page, "(none)\n");
else else
len = sprintf(page,"%llu\n", (__u64) ((ide_driver_t *)drive->driver)->capacity(drive)); len = sprintf(page,"%llu\n", (unsigned long long) ((ide_driver_t *)drive->driver)->capacity(drive));
PROC_IDE_READ_RETURN(page,start,off,count,eof,len); PROC_IDE_READ_RETURN(page,start,off,count,eof,len);
} }
......
...@@ -813,7 +813,7 @@ byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat) ...@@ -813,7 +813,7 @@ byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat)
high = read_24(drive); high = read_24(drive);
sectors = ((__u64)high << 24) | low; sectors = ((__u64)high << 24) | low;
printk(", LBAsect=%lld, high=%d, low=%d", sectors, high, low); printk(", LBAsect=%lld, high=%d, low=%d", (long long) sectors, high, low);
} else { } else {
byte cur = IN_BYTE(IDE_SELECT_REG); byte cur = IN_BYTE(IDE_SELECT_REG);
if (cur & 0x40) { /* using LBA? */ if (cur & 0x40) { /* using LBA? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment