acassis commented on PR #12186:
URL: https://github.com/apache/nuttx/pull/12186#issuecomment-2067271882
Nice work @michi-jung !!!
Could you please this error reported in the network stack:
```
In file included from dhcp6c.c:37:
dhcp6c.c: In function 'dhcp6c_get_result':
Error: dhcp6c.c:435:9: error: format '%d' expects argument of type 'int',
but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
435 | ninfo("T1:%d T2:%d for iface %i\n", presult->t1, presult->t2,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
| |
| uint32_t {aka long
unsigned int}
dhcp6c.c:435:14: note: format string is defined here
435 | ninfo("T1:%d T2:%d for iface %i\n", presult->t1, presult->t2,
| ~^
| |
| int
| %ld
Error: dhcp6c.c:435:9: error: format '%d' expects argument of type 'int',
but argument 4 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
435 | ninfo("T1:%d T2:%d for iface %i\n", presult->t1, presult->t2,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
| |
| uint32_t
{aka long unsigned int}
dhcp6c.c:435:20: note: format string is defined here
435 | ninfo("T1:%d T2:%d for iface %i\n", presult->t1, presult->t2,
| ~^
| |
| int
| %ld
dhcp6c.c: In function 'dhcp6c_command':
Error: dhcp6c.c:796:9: error: format '%u' expects argument of type 'unsigned
int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'}
[-Werror=format=]
796 | ninfo("Sending %s (timeout %u s)\n", retx->name, timeout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
| |
| uint32_t {aka
long unsigned int}
dhcp6c.c:796:31: note: format string is defined here
796 | ninfo("Sending %s (timeout %u s)\n", retx->name, timeout);
| ~^
| |
| unsigned int
| %lu
```
It is just replacing %u with PRIu32
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]