pussuw opened a new pull request, #10381:
URL: https://github.com/apache/nuttx/pull/10381

   ## Summary
   Use PRIx64 which defines the width correctly regardless or architecture.
   
   Fixes build error:
   rpmsg/rpmsg_sockif.c:610:57: error: format '%llx' expects argument of type 
'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long 
unsigned int'} [-Werror=format=]
     610 |       snprintf(conn->nameid, sizeof(conn->nameid), ":%llx", 
g_rpmsg_id++);
         |                                                      ~~~^   
~~~~~~~~~~~~
         |                                                         |            
 |
         |                                                         |            
 uint64_t {aka long unsigned int}
         |                                                         long long 
unsigned int
         |                                                      %lx
   
   ## Impact
   Fix sprintf format to work when u64 is defined as unsigned long
   ## Testing
   Build pass
   


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