Skip to content

Feature/test workflows#189

Closed
scthunderbolt wants to merge 4 commits intodevelopfrom
feature/test-workflows
Closed

Feature/test workflows#189
scthunderbolt wants to merge 4 commits intodevelopfrom
feature/test-workflows

Conversation

@scthunderbolt
Copy link
Contributor

No description provided.

@scthunderbolt scthunderbolt requested a review from a team as a code owner January 23, 2026 09:53
Copilot AI review requested due to automatic review settings January 23, 2026 09:53
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

Small touch-up PR that modifies GDial logging and makes a minor markdown-only update to the contributing guide.

Changes:

  • Updated GDialCastObject::applicationStateChanged logging call in gdial.cpp.
  • Added a trailing blank line to CONTRIBUTING.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
server/plat/gdial.cpp Alters app state-change logging (currently introduces a format/argument mismatch).
CONTRIBUTING.md Adds a trailing blank line at EOF.

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

@@ -74,7 +74,6 @@ class GDialCastObject
{
GDIAL_LOGINFO("AppName[%s] AppID[%s] State[%s] Error[%s]",
AppObj->appName.c_str(),
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

The format string expects 4 %s values (AppName/AppID/State/Error), but only 3 arguments are now passed after removing appId. This will cause incorrect logging and can trigger -Wformat warnings or undefined behavior at runtime. Either add the missing AppObj->appId.c_str() argument back, or remove the AppID placeholder from the format string.

Suggested change
AppObj->appName.c_str(),
AppObj->appName.c_str(),
AppObj->appId.c_str(),

Copilot uses AI. Check for mistakes.
@@ -74,7 +74,6 @@ class GDialCastObject
{
GDIAL_LOGINFO("AppName[%s] AppID[%s] State[%s] Error[%s]",
Copy link
Contributor

Choose a reason for hiding this comment

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

Coverity Issue - Missing argument to printf format specifier

No argument for format specifier "%s".

Medium Impact, CWE-685
PRINTF_ARGS

@scthunderbolt scthunderbolt deleted the feature/test-workflows branch January 23, 2026 10:30
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2026
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.

2 participants