diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-11-14 09:59:48 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-11-14 09:59:48 -0700 |
commit | a108096878aa6cb744b5280ca59395b6c0152d14 (patch) | |
tree | 552083cab7d520088ff7681c4ad36b2ee3757c82 /drivers/serial/uartlite.c | |
parent | 847cdf42d589882aca683b6fb65b2c7832e92231 (diff) | |
download | op-kernel-dev-a108096878aa6cb744b5280ca59395b6c0152d14.zip op-kernel-dev-a108096878aa6cb744b5280ca59395b6c0152d14.tar.gz |
powerpc/virtex: fix various format/casting printk mismatches
Various printk format string in code used by the Xilinx Virtex platform
are not 32-bit/64-bit safe. Add correct casting to fix the bugs.
Reported-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/serial/uartlite.c')
-rw-r--r-- | drivers/serial/uartlite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/uartlite.c b/drivers/serial/uartlite.c index 6a3f8fb..3317148 100644 --- a/drivers/serial/uartlite.c +++ b/drivers/serial/uartlite.c @@ -286,8 +286,8 @@ static void ulite_release_port(struct uart_port *port) static int ulite_request_port(struct uart_port *port) { - pr_debug("ulite console: port=%p; port->mapbase=%x\n", - port, port->mapbase); + pr_debug("ulite console: port=%p; port->mapbase=%llx\n", + port, (unsigned long long) port->mapbase); if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) { dev_err(port->dev, "Memory region busy\n"); |