mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 00:43:13 +00:00
arch/arm/src/tiva/common/lmxx_tm4c_gpioirq.c: Fix a syslog format
The original code seems using "%08b" format to mean a binary representation. I couldn't find it in the NuttX printf implementation or standards.
This commit is contained in:
parent
57f45a07c4
commit
e37bbd9173
1 changed files with 2 additions and 1 deletions
|
|
@ -42,6 +42,7 @@
|
|||
#include <nuttx/arch.h>
|
||||
#include <nuttx/irq.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
|
@ -269,7 +270,7 @@ static int tiva_gpioporthandler(uint8_t port, void *context)
|
|||
irq = gpioport2irq(port);
|
||||
mis = getreg32(base + TIVA_GPIO_MIS_OFFSET);
|
||||
|
||||
gpioinfo("irq=%d mis=0b%08b\n", irq, mis & 0xff);
|
||||
gpioinfo("irq=%d mis=0x%02" PRIx32 "\n", irq, mis & 0xff);
|
||||
|
||||
/* Clear all pending interrupts */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue