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
if (!driver)
len = sprintf(page, "(none)\n");
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);
}
......
......@@ -813,7 +813,7 @@ byte ide_dump_status (ide_drive_t *drive, const char *msg, byte stat)
high = read_24(drive);
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 {
byte cur = IN_BYTE(IDE_SELECT_REG);
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