mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-14 17:31:16 +00:00
netutils/dhcpd: Fix printf format error based on different chip arches
This commit is contained in:
parent
89e6fb9a42
commit
208df89ab0
1 changed files with 2 additions and 2 deletions
|
|
@ -892,7 +892,7 @@ static inline int dhcpd_openresponder(void)
|
|||
int sockfd;
|
||||
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 */
|
||||
|
||||
|
|
@ -1480,7 +1480,7 @@ static inline int dhcpd_openlistener(FAR const char *interface)
|
|||
g_state.ds_serverip = ((FAR struct sockaddr_in *)
|
||||
&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
|
||||
* receive broadcast messages.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue