From b582af37cf8bfd70e6cf9a0e082b26890e8108af Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 9 Jun 2013 21:47:58 +0200 Subject: 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. --- linux/dev/drivers/block/ahci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux/dev/drivers/block') 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; } -- cgit v1.2.3