Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: dai-/host-zephyr: Drop the duplicated function name print and print the src/sink frames when there is nothing to copy on dai side #9397

Conversation

ujfalusi
Copy link
Contributor

The comp_* macros will print the function name from where they are called,
there is no need to print them twice.

The context-less 'nothing to copy' print does not give much help to understand why we are not copying.

The comp_* macros will print the function name from where they are called,
there is no need to print them twice.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
… copy'

The 'nothing to copy' without context does not help in debugging, print
out the number of frames on src and sink side to give some context.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The comp_* macros will print the function name from where they are called,
there is no need to print them twice.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
@ujfalusi ujfalusi force-pushed the peter/pt/dai_host_zephyr_print_cleanup_01 branch from b48d065 to aaa6734 Compare August 23, 2024 09:17
@@ -76,7 +76,7 @@ int dai_assign_group(struct dai_data *dd, struct comp_dev *dev, uint32_t group_i
{
if (dd->group) {
if (dd->group->group_id != group_id) {
comp_err(dev, "dai_assign_group(), DAI already in group %d, requested %d",
comp_err(dev, "DAI already in group %d, requested %d",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is actually a Zephyr feature (CONFIG_LOG_FUNC_NAME_PREFIX) and not added by SOF comp_() macros, so non-Zephyr targets might still benefit from the function name. But alas, this file is Zephyr specific, so no reason to keep the dual names (and we actually save memory and cycles by reducing these).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kv2019i, yes, it is the zephyr prints that does this, thanks for the clarification.

@lgirdwood lgirdwood merged commit 7b021f6 into thesofproject:main Aug 23, 2024
42 of 47 checks passed
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.

3 participants