arch/arm/src/a1x/a1x_serial.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi 2020-11-29 12:13:19 +09:00 committed by Xiang Xiao
parent 2431852785
commit c8ff295d59

View File

@ -40,6 +40,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <sys/types.h> #include <sys/types.h>
#include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include <unistd.h> #include <unistd.h>
@ -1130,7 +1131,7 @@ static int uart_interrupt(int irq, void *context, void *arg)
/* Read the modem status register (MSR) to clear */ /* Read the modem status register (MSR) to clear */
status = up_serialin(priv, A1X_UART_MSR_OFFSET); status = up_serialin(priv, A1X_UART_MSR_OFFSET);
_info("MSR: %02x\n", status); _info("MSR: %02" PRIx32 "\n", status);
break; break;
} }
@ -1141,7 +1142,7 @@ static int uart_interrupt(int irq, void *context, void *arg)
/* Read the line status register (LSR) to clear */ /* Read the line status register (LSR) to clear */
status = up_serialin(priv, A1X_UART_LSR_OFFSET); status = up_serialin(priv, A1X_UART_LSR_OFFSET);
_info("LSR: %02x\n", status); _info("LSR: %02" PRIx32 "\n", status);
break; break;
} }
@ -1173,7 +1174,7 @@ static int uart_interrupt(int irq, void *context, void *arg)
default: default:
{ {
_err("ERROR: Unexpected IIR: %02x\n", status); _err("ERROR: Unexpected IIR: %02" PRIx32 "\n", status);
break; break;
} }
} }