Remove function names from logging calls in src/ipc directory #10151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR systematically removes function name prefixes from all logging calls throughout the
src/ipcdirectory to improve log readability and reduce redundancy. Function names like"function_name():"at the beginning of log messages are now removed while preserving all other diagnostic information.Changes Made
Updated logging calls across all files in
src/ipc/to remove function name prefixes from message strings:Main IPC Files
src/ipc/dma-copy.c: Removed prefixes like"sg_get_elem_at():","dma_copy_new():","dma_copy_set_stream_tag():"src/ipc/ipc-common.c: Removed"ipc_process_on_core():"prefix, improved"ipc_init()"to meaningful "Initializing IPC" messagesrc/ipc/ipc-helper.c: Removed prefixes like"comp_verify_params():","ipc_pipeline_complete():","ipc_comp_free():"IPC3 Subdirectory
src/ipc/ipc3/helper.c: Removed prefixes including"comp_new():","ipc_comp_new():","get_drv():","ipc_pipeline_new():","ipc_buffer_new():","ipc_comp_connect():"src/ipc/ipc3/host-page-table.c: Removed"ipc_parse_page_descriptors():","ipc_get_page_descriptors():"prefixessrc/ipc/ipc3/dai.c: Removed prefixes like"dai_config_dma_channel():","dai_data_config():","dai_config():","ipc_comp_dai_config():"src/ipc/ipc3/handler.c: Removed numerous probe function prefixes including"ipc_probe_init():","ipc_probe_dma_add():","ipc_probe_point_add():", etc.IPC4 Subdirectory
src/ipc/ipc4/helper.c: Removed prefixes like"ipc_pipeline_free():","comp_ipc4_get_attribute_remote():","get_drv():","ipc_comp_new():"src/ipc/ipc4/dai.c: Removed prefixes including"dai_config_dma_channel():","dai_data_config():","dai_config():"Examples
Before:
After:
Summary
This change makes logs cleaner and more readable while ensuring all necessary diagnostic information is preserved for debugging purposes.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.