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
@ -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…
x
Reference in New Issue
Block a user