xiaoxiang781216 opened a new pull request #894:
URL: https://github.com/apache/incubator-nuttx-apps/pull/894


   ## Summary
   ````
   sensortest.c: In function 'print_gps':
   Error: sensortest.c:169:29: error: format '%llu' expects argument of type 
'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long 
unsigned int'} [-Werror=format=]
     169 |   printf("%s: timestamp: %llu time_utc: %llu latitude: %f longitude: 
%f "
         |                          ~~~^
         |                             |
         |                             long long unsigned int
         |                          %lu
   ......
     172 |          " %u\n", name, event->timestamp, event->time_utc, 
event->latitude,
         |                         ~~~~~~~~~~~~~~~~
         |                              |
         |                              uint64_t {aka long unsigned int}
   Error: sensortest.c:169:44: error: format '%llu' expects argument of type 
'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long 
unsigned int'} [-Werror=format=]
     169 |   printf("%s: timestamp: %llu time_utc: %llu latitude: %f longitude: 
%f "
         |                                         ~~~^
         |                                            |
         |                                            long long unsigned int
         |                                         %lu
   ......
     172 |          " %u\n", name, event->timestamp, event->time_utc, 
event->latitude,
         |                                           ~~~~~~~~~~~~~~~
         |                                                |
         |                                                uint64_t {aka long 
unsigned int}
   sensortest.c: In function 'print_gps_satellite':
   Error: sensortest.c:183:29: error: format '%llu' expects argument of type 
'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long 
unsigned int'} [-Werror=format=]
     183 |   printf("%s: timestamp: %llu count: %u satellites: %u", name,
         |                          ~~~^
         |                             |
         |                             long long unsigned int
         |                          %lu
     184 |          event->timestamp, event->count, event->satellites);
         |          ~~~~~~~~~~~~~~~~
         |               |
         |               uint64_t {aka long unsigned int}
   ```
   
   ## Impact
   Fix the warning by PR https://github.com/apache/incubator-nuttx-apps/pull/893
   
   ## Testing
   Pass CI
   


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