diff --git a/drivers/input/button_lower.c b/drivers/input/button_lower.c index 06aaff3e42..e045af7d9c 100644 --- a/drivers/input/button_lower.c +++ b/drivers/input/button_lower.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -98,7 +99,7 @@ static FAR void *g_btnarg; static btn_buttonset_t btn_supported(FAR const struct btn_lowerhalf_s *lower) { - iinfo("NUM_BUTTONS: %02x\n", g_btnnum); + iinfo("NUM_BUTTONS: %02" PRIx32 "\n", g_btnnum); return (btn_buttonset_t)((1 << g_btnnum) - 1); } @@ -138,7 +139,7 @@ static void btn_enable(FAR const struct btn_lowerhalf_s *lower, flags = enter_critical_section(); btn_disable(); - iinfo("press: %02x release: %02x handler: %p arg: %p\n", + iinfo("press: %02" PRIx32 " release: %02" PRIx32 " handler: %p arg: %p\n", press, release, handler, arg); /* If no events are indicated or if no handler is provided, then this