AnsweredAssumed Answered

PRINTF has no arguments when SDK_DEBUGCONSOLE is disabled

Question asked by Markus Büttgenbach on Feb 25, 2019
Latest reply on Feb 26, 2019 by Felipe García

Hello,

 

using SDK 2.5.0 in "fsl_debug_console.h" the `PRINTF` macro is defined empty without any arguments when `SDK_DEBUGCONSOLE` is disabled. This leads to compiler warnings. Does anything speak up against defining the macro according to the standard library printf signature to avoid the warnings. like so: `#define PRINTF(fmt, ...)`??? I am currently redefining it like this to bypass the warnings when switching from debug to release build. Maybe this could be taken into account for the next version?!?!?!

 

Rgds

Markus

Outcomes