mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
drivers/leds/userled_lower.c: Fix a syslog format
This commit is contained in:
committed by
Xiang Xiao
parent
41db756d78
commit
d05299f37d
@@ -42,6 +42,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <nuttx/board.h>
|
#include <nuttx/board.h>
|
||||||
#include <nuttx/leds/userled.h>
|
#include <nuttx/leds/userled.h>
|
||||||
@@ -89,7 +90,7 @@ static const struct userled_lowerhalf_s g_userled_lower =
|
|||||||
static userled_set_t
|
static userled_set_t
|
||||||
userled_supported(FAR const struct userled_lowerhalf_s *lower)
|
userled_supported(FAR const struct userled_lowerhalf_s *lower)
|
||||||
{
|
{
|
||||||
ledinfo("BOARD_NLEDS: %02x\n", g_lednum);
|
ledinfo("BOARD_NLEDS: %02" PRIx32 "\n", g_lednum);
|
||||||
return (userled_set_t)((1 << g_lednum) - 1);
|
return (userled_set_t)((1 << g_lednum) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user