From fb1d3fbe032e84d4b6979ae4c0e98429c7ac2b89 Mon Sep 17 00:00:00 2001 From: Mads Kolding Nielsen Date: Fri, 1 Mar 2024 10:33:42 +0100 Subject: [PATCH] Fix compile error with NX_DEBUG enabled When compiling with NX_DEBUG enabled the nx_ram_network_driver gives a compiler error when printing the IP Address, since long sub-specifier is missing. --- common/src/nx_ram_network_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/nx_ram_network_driver.c b/common/src/nx_ram_network_driver.c index 9f542377..a687e212 100644 --- a/common/src/nx_ram_network_driver.c +++ b/common/src/nx_ram_network_driver.c @@ -274,7 +274,7 @@ ULONG *ethernet_frame_ptr; #ifdef NX_DEBUG printf("NetX RAM Driver Initialization - %s\n", ip_ptr -> nx_ip_name); - printf(" IP Address =%08X\n", ip_ptr -> nx_ip_address); + printf(" IP Address =%08lX\n", ip_ptr -> nx_ip_address); #endif /* Once the Ethernet controller is initialized, the driver needs to