From 35e523d9d084e9e609279178e84fb2fba93c57e8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 23 Apr 2017 11:49:54 -0500 Subject: uart/apbuart.c: Correct printk() format --- c/src/lib/libbsp/sparc/shared/uart/apbuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/sparc/shared/uart/apbuart.c b/c/src/lib/libbsp/sparc/shared/uart/apbuart.c index 202def36bd..171f114d86 100644 --- a/c/src/lib/libbsp/sparc/shared/uart/apbuart.c +++ b/c/src/lib/libbsp/sparc/shared/uart/apbuart.c @@ -571,7 +571,7 @@ static rtems_device_driver apbuart_read(rtems_device_major_number major, rtems_d rtems_interrupt_disable(oldLevel); do { if ( (unsigned int)uart < 0x40000000 ) { - printk("UART %x is screwed\n",uart); + printk("UART %p is screwed\n",uart); } /* Read from SW fifo */ if ( apbuart_fifo_get(uart->rxfifo,&buf[count]) != 0 ){ -- cgit v1.2.3