Skip to content

CMFSUPPORT-3609 TEST 1. DO NOT MERGE#334

Open
scthunderbolt wants to merge 3 commits intomasterfrom
feature/test-workflow
Open

CMFSUPPORT-3609 TEST 1. DO NOT MERGE#334
scthunderbolt wants to merge 3 commits intomasterfrom
feature/test-workflow

Conversation

@scthunderbolt
Copy link
Copy Markdown

DO NOT MERGE

Copilot AI review requested due to automatic review settings March 27, 2026 11:03
Copy link
Copy Markdown

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 appears to be a temporary/test change (per title/description “DO NOT MERGE”) and modifies error logging in the device_info utility’s hex conversion helper.

Changes:

  • Updated the printf call in toHexString() when the provided output buffer is too small.

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


} else {
printf("ERROR: bufLength %d is too small for %d chars\n", *bufLength, totalLength);
printf("ERROR: bufLength %d is too small for %d chars\n", totalLength);
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

printf format string expects two integer arguments (%d ... %d) but only one argument (totalLength) is provided here. This is undefined behavior and will often crash or print garbage. Pass both values (e.g., current *bufLength and required totalLength) or adjust the format string to match the arguments; also consider using an unsigned/PRIu32 format since these are uint32_t.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants