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

   ## Summary
   
   This call to syslog was missing the '%' in its format string, and also was 
using the wrong format string (lu instead of d) to print the `cmd` argument. It 
is corrected and the compiler warning resolved.
   
   ## Impact
   
   Syslog call will now work correctly and the build output has one less error.
   
   ## Testing
   
   Built locally.
   
   Before, the compiler output included:
   
   ```console
   sensors/lis2mdl_uorb.c: In function 'lis2mdl_control':
   sensors/lis2mdl_uorb.c:1143:13: warning: too many arguments for format 
[-Wformat-extra-args]
    1143 |       snerr("Unknown command for LIS2MDL: lu\n", cmd);
   ```
   
   Now there is no warning.


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