diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-08-11 23:41:17 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-08-11 23:41:17 +0200 |
commit | 85f0d85bada3264a7e7343087b68f6ff2e44d9a8 (patch) | |
tree | 8692d4a007c2a1320a60fffda2a01bed3c862860 /linux | |
parent | 34c5af86d9c07ee1a888e65c9756f8dd9c450515 (diff) | |
download | gnumach-85f0d85bada3264a7e7343087b68f6ff2e44d9a8.tar.gz gnumach-85f0d85bada3264a7e7343087b68f6ff2e44d9a8.tar.bz2 gnumach-85f0d85bada3264a7e7343087b68f6ff2e44d9a8.zip |
Fix printk format
* linux/dev/drivers/block/ahci.c (ahci_identify, ahci_probe_port): Fix
format.
Diffstat (limited to 'linux')
-rw-r--r-- | linux/dev/drivers/block/ahci.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |