diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-03-24 11:40:03 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-03-24 11:40:03 +0100 |
commit | a211bce94fd986fc2c44654aca04ce3c0b38d777 (patch) | |
tree | 7aa05ca918356f3b95ac0f03d377c0f2e1790b69 | |
parent | Add sys_arch_data_sync_barier() for RTEMS (diff) | |
download | rtems-lwip-a211bce94fd986fc2c44654aca04ce3c0b38d777.tar.bz2 |
tms570_emac: Fix print formats
-rw-r--r-- | uLan/ports/driver/tms570_emac/eth_lwip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uLan/ports/driver/tms570_emac/eth_lwip.c b/uLan/ports/driver/tms570_emac/eth_lwip.c index 0315cdf..9edcc08 100644 --- a/uLan/ports/driver/tms570_emac/eth_lwip.c +++ b/uLan/ports/driver/tms570_emac/eth_lwip.c @@ -41,6 +41,7 @@ #include "eth_lwip.h" #include "tms570_netif.h" #include <stdio.h> +#include <inttypes.h> /* The lwIP network interface structure for the Ethernet EMAC. */ #ifndef MAX_EMAC_INSTANCE @@ -149,7 +150,7 @@ eth_lwip_conv_IP_decimal_Str(ip_addr_t ip, uint8_t *ipStr) addr = ip.addr; #endif - snprintf((char *)ipStr, 16, "%lu.%lu.%lu.%lu", + snprintf((char *)ipStr, 16, "%" PRIu32 ".%" PRIu32 ".%" PRIu32 ".%" PRIu32 "", (addr >> 24), ((addr >> 16) & 0xff), ((addr >> 8) & 0xff), (addr & 0xff)); } |