Skip to content

Conversation

@dwolaver
Copy link
Contributor

No description provided.

@dwolaver dwolaver requested review from a team September 15, 2025 18:29
Copy link
Contributor

@egalla204 egalla204 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved for test

@dwolaver dwolaver requested a review from a team as a code owner October 16, 2025 18:16
Copilot AI review requested due to automatic review settings November 17, 2025 20:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the ANSI_CODES_DISABLED build flag, which previously controlled whether ANSI color codes were used in logging output. The change simplifies the build configuration by always enabling color-coded logging.

Key changes:

  • Removed the ANSI_CODES_DISABLED CMake option and its conditional compilation logic
  • Updated logging initialization calls to explicitly enable color/ANSI code support
  • Modified XLOG_OPTS_DEFAULT to unconditionally include XLOG_OPTS_COLOR

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
CMakeLists.txt Removed ANSI_CODES_DISABLED build option and conditional compilation definitions
src/ctrlm_log.h Removed conditional compilation, now always includes XLOG_OPTS_COLOR in default options
src/ctrlm_main.cpp Added boolean parameter to vsdk_init() call to enable ANSI codes
src/factory/ctrlmf_version.c Added boolean parameter to xlog_init() call to enable ANSI codes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
}
vsdk_init();
vsdk_init(true);
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The boolean parameter true passed to vsdk_init() lacks clarity. Consider using a named constant or enum value (e.g., VSDK_ENABLE_ANSI_CODES or vsdk_init(/*enable_ansi_codes=*/true)) to make the parameter's purpose self-documenting, especially since this relates to the removal of the ANSI_CODES_DISABLED flag.

Copilot uses AI. Check for mistakes.
rdk_version_object_free(&info);

int rc = xlog_init(XLOG_MODULE_ID, NULL, 0);
int rc = xlog_init(XLOG_MODULE_ID, NULL, 0, true);
Copy link

Copilot AI Nov 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The boolean parameter true passed to xlog_init() lacks clarity. Consider using a named constant or enum value (e.g., XLOG_ENABLE_ANSI_CODES or xlog_init(XLOG_MODULE_ID, NULL, 0, /*enable_ansi_codes=*/true)) to make the parameter's purpose self-documenting and align with the PR's intent to remove the ANSI_CODES_DISABLED flag.

Copilot uses AI. Check for mistakes.
@dwolaver dwolaver merged commit e652641 into develop Nov 17, 2025
14 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants