acassis commented on PR #13216:
URL: https://github.com/apache/nuttx/pull/13216#issuecomment-2315314638

   @yangsong8-ai please fix these issues:
   ```
   usbdev/cdcecm.c: In function 'cdcecm_ep0incomplete':
   Error: usbdev/cdcecm.c:832:12: error: format '%hu' expects argument of type 
'int', but argument 4 has type 'uint32_t' {aka 'long unsigned int'} 
[-Werror=format=]
     832 |       uerr("result: %hd, xfrd: %hu\n", req->result, req->xfrd);
         |            ^~~~~~~~~~~~~~~~~~~~~~~~~~               ~~~~~~~~~
         |                                                        |
         |                                                        uint32_t {aka 
long unsigned int}
   usbdev/cdcecm.c:832:34: note: format string is defined here
     832 |       uerr("result: %hd, xfrd: %hu\n", req->result, req->xfrd);
         |                                ~~^
         |                                  |
         |                                  int
         |                                %lu
   usbdev/cdcecm.c: In function 'cdcecm_rdcomplete':
   Error: usbdev/cdcecm.c:849:9: error: format '%hu' expects argument of type 
'int', but argument 5 has type 'uint32_t' {aka 'long unsigned int'} 
[-Werror=format=]
     849 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     850 |         req->buf, req->flags, req->len, req->xfrd, req->result);
         |                               ~~~~~~~~
         |                                  |
         |                                  uint32_t {aka long unsigned int}
   usbdev/cdcecm.c:849:39: note: format string is defined here
     849 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |                                     ~~^
         |                                       |
         |                                       int
         |                                     %lu
   Error: usbdev/cdcecm.c:849:9: error: format '%hu' expects argument of type 
'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} 
[-Werror=format=]
     849 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     850 |         req->buf, req->flags, req->len, req->xfrd, req->result);
         |                                         ~~~~~~~~~
         |                                            |
         |                                            uint32_t {aka long 
unsigned int}
   usbdev/cdcecm.c:849:49: note: format string is defined here
     849 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |                                               ~~^
         |                                                 |
         |                                                 int
         |                                               %lu
   usbdev/cdcecm.c: In function 'cdcecm_wrcomplete':
   Error: usbdev/cdcecm.c:890:9: error: format '%hu' expects argument of type 
'int', but argument 5 has type 'uint32_t' {aka 'long unsigned int'} 
[-Werror=format=]
     890 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     891 |         req->buf, req->flags, req->len, req->xfrd, req->result);
         |                               ~~~~~~~~
         |                                  |
         |                                  uint32_t {aka long unsigned int}
   usbdev/cdcecm.c:890:39: note: format string is defined here
     890 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |                                     ~~^
         |                                       |
         |                                       int
         |                                     %lu
   Error: usbdev/cdcecm.c:890:9: error: format '%hu' expects argument of type 
'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} 
[-Werror=format=]
     890 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     891 |         req->buf, req->flags, req->len, req->xfrd, req->result);
         |                                         ~~~~~~~~~
         |                                            |
         |                                            uint32_t {aka long 
unsigned int}
   usbdev/cdcecm.c:890:49: note: format string is defined here
     890 |   uinfo("buf: %p, flags 0x%hhx, len %hu, xfrd %hu, result %hd\n",
         |                                               ~~^
         |                                                 |
         |                                                 int
         |                                               %lu
   cc1: all warnings being treated as errors
   make[1]: *** [Makefile:102: cdcecm.o] Error 1
   ```


-- 
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]

Reply via email to