mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
arch/arm/src/lpc43xx/lpc43_serial.c: Fix syslog formats
This commit is contained in:
committed by
Xiang Xiao
parent
485b84f418
commit
32e6784683
@@ -40,6 +40,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
@@ -770,7 +771,7 @@ static int up_interrupt(int irq, void *context, void *arg)
|
||||
/* Read the modem status register (MSR) to clear */
|
||||
|
||||
status = up_serialin(priv, LPC43_UART_MSR_OFFSET);
|
||||
_info("MSR: %02x\n", status);
|
||||
_info("MSR: %02" PRIx32 "\n", status);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -781,7 +782,7 @@ static int up_interrupt(int irq, void *context, void *arg)
|
||||
/* Read the line status register (LSR) to clear */
|
||||
|
||||
status = up_serialin(priv, LPC43_UART_LSR_OFFSET);
|
||||
_info("LSR: %02x\n", status);
|
||||
_info("LSR: %02" PRIx32 "\n", status);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -789,7 +790,7 @@ static int up_interrupt(int irq, void *context, void *arg)
|
||||
|
||||
default:
|
||||
{
|
||||
_err("ERROR: Unexpected IIR: %02x\n", status);
|
||||
_err("ERROR: Unexpected IIR: %02" PRIx32 "\n", status);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user