From 85f0d85bada3264a7e7343087b68f6ff2e44d9a8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 11 Aug 2019 23:41:17 +0200 Subject: Fix printk format * linux/dev/drivers/block/ahci.c (ahci_identify, ahci_probe_port): Fix format. --- linux/dev/drivers/block/ahci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'linux') diff --git a/linux/dev/drivers/block/ahci.c b/linux/dev/drivers/block/ahci.c index 3cb003c0..6d5c2858 100644 --- a/linux/dev/drivers/block/ahci.c +++ b/linux/dev/drivers/block/ahci.c @@ -702,9 +702,9 @@ static int ahci_identify(const volatile struct ahci_host *ahci_host, const volat } } if (port->capacity/2048 >= 10240) - printk("sd%u: %s, %uGB w/%dkB Cache\n", port - ports, id.model, (unsigned) (port->capacity/(2048*1024)), id.buf_size/2); + printk("sd%u: %s, %uGB w/%dkB Cache\n", (unsigned) (port - ports), id.model, (unsigned) (port->capacity/(2048*1024)), id.buf_size/2); else - printk("sd%u: %s, %uMB w/%dkB Cache\n", port - ports, id.model, (unsigned) (port->capacity/2048), id.buf_size/2); + printk("sd%u: %s, %uMB w/%dkB Cache\n", (unsigned) (port - ports), id.model, (unsigned) (port->capacity/2048), id.buf_size/2); } port->identify = 0; @@ -755,7 +755,7 @@ static void ahci_probe_port(const volatile struct ahci_host *ahci_host, const vo timeout = jiffies + WAIT_MAX; while (readl(&ahci_port->cmd) & PORT_CMD_LIST_ON) if (jiffies > timeout) { - printk("sd%u: timeout waiting for list completion\n", port-ports); + printk("sd%u: timeout waiting for list completion\n", (unsigned) (port-ports)); port->ahci_host = NULL; port->ahci_port = NULL; return; @@ -765,7 +765,7 @@ static void ahci_probe_port(const volatile struct ahci_host *ahci_host, const vo timeout = jiffies + WAIT_MAX; while (readl(&ahci_port->cmd) & PORT_CMD_FIS_ON) if (jiffies > timeout) { - printk("sd%u: timeout waiting for FIS completion\n", port-ports); + printk("sd%u: timeout waiting for FIS completion\n", (unsigned) (port-ports)); port->ahci_host = NULL; port->ahci_port = NULL; return; @@ -796,7 +796,7 @@ static void ahci_probe_port(const volatile struct ahci_host *ahci_host, const vo timeout = jiffies + WAIT_MAX; while (readl(&ahci_port->cmd) & PORT_CMD_LIST_ON) if (jiffies > timeout) { - printk("sd%u: timeout waiting for list completion\n", port-ports); + printk("sd%u: timeout waiting for list completion\n", (unsigned) (port-ports)); port->ahci_host = NULL; port->ahci_port = NULL; return; -- cgit v1.2.3