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 2021/11/17 15:50:23 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new pull request #4846: sensors/wtgahrs2: Fix syslog format warning

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


   ## Summary
   ```
   sensors/wtgahrs2.c: In function 'wtgahrs2_gps_data':
   Error: sensors/wtgahrs2.c:332:14: error: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=]
     332 |       sninfo("Time : %llu utc_time: %llu\n",
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     333 |              rtdata->gps.timestamp, rtdata->gps.time_utc);
         |              ~~~~~~~~~~~~~~~~~~~~~
         |                         |
         |                         uint64_t {aka long unsigned int}
   sensors/wtgahrs2.c:332:25: note: format string is defined here
     332 |       sninfo("Time : %llu utc_time: %llu\n",
         |                      ~~~^
         |                         |
         |                         long long unsigned int
         |                      %lu
   In file included from sensors/wtgahrs2.c:37:
   Error: sensors/wtgahrs2.c:332:14: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Werror=format=]
     332 |       sninfo("Time : %llu utc_time: %llu\n",
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     333 |              rtdata->gps.timestamp, rtdata->gps.time_utc);
         |                                     ~~~~~~~~~~~~~~~~~~~~
         |                                                |
         |                                                uint64_t {aka long unsigned int}
   sensors/wtgahrs2.c:332:40: note: format string is defined here
     332 |       sninfo("Time : %llu utc_time: %llu\n",
         |                                     ~~~^
         |                                        |
         |                                        long long unsigned int
         |                                     %lu
   ```
   
   ## Impact
   Fix the warning by PR https://github.com/apache/incubator-nuttx/pull/4842
   
   ## 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: commits-unsubscribe@nuttx.apache.org

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



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #4846: sensors/wtgahrs2: Fix syslog format warning

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on pull request #4846:
URL: https://github.com/apache/incubator-nuttx/pull/4846#issuecomment-971713715


   Note both PR https://github.com/apache/incubator-nuttx-apps/pull/894 and https://github.com/apache/incubator-nuttx/pull/4846 need merge to fix the CI break.


-- 
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] [incubator-nuttx] acassis merged pull request #4846: sensors/wtgahrs2: Fix syslog format warning

Posted by GitBox <gi...@apache.org>.
acassis merged pull request #4846:
URL: https://github.com/apache/incubator-nuttx/pull/4846


   


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