fdcavalcanti opened a new issue, #16864:
URL: https://github.com/apache/nuttx/issues/16864

   ### Description
   
   Hi all,
   
   Recently I've had a few encounters with syslog and debug functions being 
used on board level source code.
   
   Taking a generic sensor for example. We have some boards that use `snerr`, 
snwarn` and `sninfo` on board level functions, which require the `debug.h` 
header. On some other boards, we use the `syslog` function (which is what I 
prefer).
   
   From what I understand, the macros from `debug.h` should be used in drivers 
or arch level implementation, when we enable the DEBUG option for that specific 
sensor/interface/file system, etc. Whereas syslog does not have such 
requirement.
   
   Do we have a standard for this on NuttX? If not, could we set a rule?
   
   Thanks!
   
   ### Verification
   
   - [x] I have verified before submitting the report.


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