This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 3dc64d9a2 netutils/dhcp6c: Fix printf-style format strings
3dc64d9a2 is described below

commit 3dc64d9a26e7eec5ff5b86577054c6f6e530ad71
Author: Michael Jung <[email protected]>
AuthorDate: Sat Apr 20 08:44:42 2024 +0200

    netutils/dhcp6c: Fix printf-style format strings
    
    Signed-off-by: Michael Jung <[email protected]>
---
 netutils/dhcp6c/dhcp6c.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/netutils/dhcp6c/dhcp6c.c b/netutils/dhcp6c/dhcp6c.c
index 1d2cdf543..a26472131 100644
--- a/netutils/dhcp6c/dhcp6c.c
+++ b/netutils/dhcp6c/dhcp6c.c
@@ -49,6 +49,7 @@
 #include <net/if.h>
 #include <net/ethernet.h>
 #include <arpa/inet.h>
+#include <inttypes.h>
 
 #include "netutils/netlib.h"
 #include "netutils/dhcp6c.h"
@@ -432,7 +433,7 @@ static void dhcp6c_get_result(FAR void *handle,
 
   presult->t1 = pdhcp6c->t1;
   presult->t2 = pdhcp6c->t2;
-  ninfo("T1:%d T2:%d for iface %i\n", presult->t1, presult->t2,
+  ninfo("T1:%"PRIu32" T2:%"PRIu32" for iface %i\n", presult->t1, presult->t2,
         pdhcp6c->ifindex);
 }
 
@@ -793,7 +794,7 @@ static int dhcp6c_command(FAR void *handle, enum 
dhcpv6_msg_e type)
       goto end;
     }
 
-  ninfo("Sending %s (timeout %u s)\n", retx->name, timeout);
+  ninfo("Sending %s (timeout %"PRIu32" s)\n", retx->name, timeout);
   start = dhcp6c_get_milli_time();
   round_start = start;
 

Reply via email to