From fe654c6ee9a078e91e2b93570a9bc264c57a3e37 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 30 Nov 2020 13:46:40 +0900 Subject: [PATCH] boards/arm/tiva/dk-tm4c129x/src/tm4c_ethernet.c: Fix a syslog format --- boards/arm/tiva/dk-tm4c129x/src/tm4c_ethernet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boards/arm/tiva/dk-tm4c129x/src/tm4c_ethernet.c b/boards/arm/tiva/dk-tm4c129x/src/tm4c_ethernet.c index 1140e12b37..0abc4cc7e0 100644 --- a/boards/arm/tiva/dk-tm4c129x/src/tm4c_ethernet.c +++ b/boards/arm/tiva/dk-tm4c129x/src/tm4c_ethernet.c @@ -39,6 +39,7 @@ #include +#include #include #include #include @@ -85,7 +86,8 @@ void tiva_ethernetmac(struct ether_addr *ethaddr) user0 = getreg32(TIVA_FLASH_USERREG0); user1 = getreg32(TIVA_FLASH_USERREG1); - ninfo("user: %06x:%06x\n", user1 & 0x00ffffff, user0 & 0x00ffffff); + ninfo("user: %06" PRIx32 ":%06" PRIx32 "\n", + user1 & 0x00ffffff, user0 & 0x00ffffff); DEBUGASSERT(user0 != 0xffffffff && user1 != 0xffffffff); /* Re-format that MAC address the way that the network expects to see it */