Skip to content

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Feb 9, 2026

Simplify an error message and fix a typo in a comment.

Simplify a warning message and fix a typo in a comment.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@lyakh lyakh requested a review from ranj063 as a code owner February 9, 2026 08:18
Copilot AI review requested due to automatic review settings February 9, 2026 08:18
@lyakh lyakh requested a review from jxstelter as a code owner February 9, 2026 08:18
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 updates logging and comments in the audio module adapter, aiming to simplify an error message and correct a typo in an explanatory comment.

Changes:

  • Simplified the NULL-config error log in module_adapter_new_ext().
  • Fixed a typo in the dst->ext_data lifetime comment.

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

if (!config) {
comp_cl_err(drv, "wrong input params! drv = %zx config = %zx",
(size_t)drv, (size_t)config);
comp_cl_err(drv, "NULL config! drv = %p", drv);
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

Using %p requires a void* argument; passing drv (const struct comp_driver*) can trigger -Wformat under -Werror builds. Cast drv to (const void*) (or (void*)) when logging it, or switch back to an integer format with an explicit cast.

Suggested change
comp_cl_err(drv, "NULL config! drv = %p", drv);
comp_cl_err(drv, "NULL config! drv = %p", (const void *)drv);

Copilot uses AI. Check for mistakes.
@@ -248,8 +247,7 @@ struct comp_dev *module_adapter_new_ext(const struct comp_driver *drv,
* NOTE: dst->ext_data points to stack variable and contains
* pointers to IPC payload mailbox, so its only valid in
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

Grammar: "its" should be "it's" (contraction for "it is") in this comment.

Suggested change
* pointers to IPC payload mailbox, so its only valid in
* pointers to IPC payload mailbox, so it's only valid in

Copilot uses AI. Check for mistakes.
@@ -248,8 +247,7 @@ struct comp_dev *module_adapter_new_ext(const struct comp_driver *drv,
* NOTE: dst->ext_data points to stack variable and contains
* pointers to IPC payload mailbox, so its only valid in
* functions that called from this function. This why
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

Grammar: "This why" should be "This is why" in this comment.

Suggested change
* functions that called from this function. This why
* functions that called from this function. This is why

Copilot uses AI. Check for mistakes.
@@ -248,8 +247,7 @@ struct comp_dev *module_adapter_new_ext(const struct comp_driver *drv,
* NOTE: dst->ext_data points to stack variable and contains
* pointers to IPC payload mailbox, so its only valid in
* functions that called from this function. This why
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

Grammar: "functions that called" should be "functions that are called" in this comment.

Suggested change
* functions that called from this function. This why
* functions that are called from this function. That is why

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.

1 participant