You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2023/01/11 04:20:51 UTC
[GitHub] [nuttx-apps] anchao opened a new pull request, #1489: examples/netlink_route: fix compiler warning
anchao opened a new pull request, #1489:
URL: https://github.com/apache/nuttx-apps/pull/1489
## Summary
examples/netlink_route: fix compiler warning
```
netlink_route_main.c: In function ‘dump_neighbor’: netlink_route_main.c:151:26: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wformat=]
151 | printf("%02x", nb->ne_addr.u.na_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint8_t * {aka unsigned char *}
| %02hhn
netlink_route_main.c:155:26: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint8_t *’ {aka ‘unsigned char *’} [-Wformat=]
155 | printf("%02x.", nb->ne_addr.u.na_addr);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint8_t * {aka unsigned char *}
| %02hhn
```
Signed-off-by: chao an <an...@xiaomi.com>
## Impact
N/A
## Testing
ci-check
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [nuttx-apps] xiaoxiang781216 merged pull request #1489: examples/netlink_route: fix compiler warning
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #1489:
URL: https://github.com/apache/nuttx-apps/pull/1489
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org