summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-09 21:47:58 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-06-09 21:47:58 +0200
commitb582af37cf8bfd70e6cf9a0e082b26890e8108af (patch)
tree6d9b9c0eb343cc9317280b49a72e306c9140012f /linux
parentea45ed1b6cb14af24e817aefbba642e3733e3a88 (diff)
Fix printf format
* linux/dev/drivers/block/ahci.c (ahci_do_request): Cast capacity into unsigned long and use %lu format. (ahci_probe_port): Cast size into unsigned and use %u format.
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/drivers/block/ahci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c
index b710251..88b2ab8 100644
--- a/linux/dev/drivers/block/ahci.c
+++ b/linux/dev/drivers/block/ahci.c
@@ -397,7 +397,7 @@ static void ahci_do_request() /* invoked with cli() */
}
if (blockend > port->capacity) {
printk("offset for %u was %lu\n", minor, port->part[minor & PARTN_MASK].start_sect);
- printk("bad access: block %lu, count= %llu\n", blockend, port->capacity);
+ printk("bad access: block %lu, count= %lu\n", blockend, (unsigned long) port->capacity);
goto kill_rq;
}
@@ -712,9 +712,9 @@ static void ahci_probe_port(const volatile struct ahci_host *ahci_host, const vo
}
}
if (port->capacity/2048 >= 10240)
- printk("sd%u: %s, %lluGB w/%dkB Cache\n", port - ports, id.model, port->capacity/(2048*1024), id.buf_size/2);
+ printk("sd%u: %s, %uGB w/%dkB Cache\n", port - ports, id.model, (unsigned) (port->capacity/(2048*1024)), id.buf_size/2);
else
- printk("sd%u: %s, %lluMB w/%dkB Cache\n", port - ports, id.model, port->capacity/2048, id.buf_size/2);
+ printk("sd%u: %s, %uMB w/%dkB Cache\n", port - ports, id.model, (unsigned) (port->capacity/2048), id.buf_size/2);
}
port->identify = 0;
}