Skip to content

Feature Request: Make printf Error/Warning Messages Optional Instead of Default #5

@dsmoose

Description

@dsmoose

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

  • Preprocessor define such as:

    ENABLE_PRINTF_LOGGING

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions