Skip to content

Commit 1ff5b64

Browse files
Fabio Estevamgregkh
authored andcommitted
serial: samsung: Use %pa to print 'resource_size_t' type
When building multi_v7_defconfig with CONFIG_ARM_LPAE=y the following warning is seen: drivers/tty/serial/samsung.c: In function 's3c24xx_serial_init_port': drivers/tty/serial/samsung.c:1229:2: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' [-Wformat] Use %pa to print 'resource_size_t' type to fix the warning. Reported-by: Olof's autobuilder <[email protected]> Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Jingoo Han <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2b844ad commit 1ff5b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/samsung.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,8 +1221,8 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
12211221
wr_regl(port, S3C64XX_UINTSP, 0xf);
12221222
}
12231223

1224-
dbg("port: map=%08x, mem=%p, irq=%d (%d,%d), clock=%u\n",
1225-
port->mapbase, port->membase, port->irq,
1224+
dbg("port: map=%pa, mem=%p, irq=%d (%d,%d), clock=%u\n",
1225+
&port->mapbase, port->membase, port->irq,
12261226
ourport->rx_irq, ourport->tx_irq, port->uartclk);
12271227

12281228
/* reset the fifos (and setup the uart) */

0 commit comments

Comments
 (0)