[rtems commit] uart/apbuart.c: Correct printk() format

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    35e523d9d084e9e609279178e84fb2fba93c57e8
Changeset: http://git.rtems.org/rtems/commit/?id=35e523d9d084e9e609279178e84fb2fba93c57e8

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 11:49:54 2017 -0500

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 202def3..171f114 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 ){



More information about the vc mailing list