Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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