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 <anc...@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-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to