netutils/dhcpd: Fix printf format error based on different chip arches
This commit is contained in:
parent
89e6fb9a42
commit
208df89ab0
@ -892,7 +892,7 @@ static inline int dhcpd_openresponder(void)
|
|||||||
int sockfd;
|
int sockfd;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ninfo("Responder: %08lx\n", ntohl(g_state.ds_serverip));
|
ninfo("Responder: %08" PRIx32 "\n", ntohl(g_state.ds_serverip));
|
||||||
|
|
||||||
/* Create a socket to listen for requests from DHCP clients */
|
/* Create a socket to listen for requests from DHCP clients */
|
||||||
|
|
||||||
@ -1480,7 +1480,7 @@ static inline int dhcpd_openlistener(FAR const char *interface)
|
|||||||
g_state.ds_serverip = ((FAR struct sockaddr_in *)
|
g_state.ds_serverip = ((FAR struct sockaddr_in *)
|
||||||
&req.ifr_addr)->sin_addr.s_addr;
|
&req.ifr_addr)->sin_addr.s_addr;
|
||||||
|
|
||||||
ninfo("serverip: %08lx\n", ntohl(g_state.ds_serverip));
|
ninfo("serverip: %08" PRIx32 "\n", ntohl(g_state.ds_serverip));
|
||||||
|
|
||||||
/* Bind the socket to a local port. We have to bind to INADDRY_ANY to
|
/* Bind the socket to a local port. We have to bind to INADDRY_ANY to
|
||||||
* receive broadcast messages.
|
* receive broadcast messages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user