Summary
Request to change printf-based error and warning messages from being enabled by default to an optional feature that can be toggled at build/configuration time. (i.e. GO_Board.c > GO_board_status_leds_led_control)
Motivation
- Increases binary size
- Introduce unnecessary runtime overhead
- Pull in standard I/O dependencies that may not otherwise be needed
Proposed Change
Add a build/configuration option to enable or disable printf error/warning output.
Example Approache
Expected Behavior
- Logging is disabled by default, or at minimum can be cleanly disabled.
- Users can opt in to
printf logging when desired.
- Existing behavior remains available for debugging/development builds.
Summary
Request to change
printf-based error and warning messages from being enabled by default to an optional feature that can be toggled at build/configuration time. (i.e. GO_Board.c > GO_board_status_leds_led_control)Motivation
Proposed Change
Add a build/configuration option to enable or disable
printferror/warning output.Example Approache
Preprocessor define such as:
ENABLE_PRINTF_LOGGINGExpected Behavior
printflogging when desired.