Skip to content

Commit

Permalink
drivers/serial/ucc_uart.c: Fix compiler warning
Browse files Browse the repository at this point in the history
drivers/tty/serial/ucc_uart.c: In function 'qe2cpu_addr':
drivers/tty/serial/ucc_uart.c:238:2: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'dma_addr_t'

Signed-off-by: Kumar Gala <[email protected]>
Acked-by: Timur Tabi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
kumargala authored and gregkh committed Aug 22, 2011
1 parent 6c4b47d commit 181d576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/ucc_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static inline void *qe2cpu_addr(dma_addr_t addr, struct uart_qe_port *qe_port)
return qe_port->bd_virt + (addr - qe_port->bd_dma_addr);

/* something nasty happened */
printk(KERN_ERR "%s: addr=%x\n", __func__, addr);
printk(KERN_ERR "%s: addr=%llx\n", __func__, (u64)addr);
BUG();
return NULL;
}
Expand Down

0 comments on commit 181d576

Please sign in to comment.