-
Notifications
You must be signed in to change notification settings - Fork 349
global: remove function names from logging format strings #10155
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
Conversation
Zephyr adds function names to log entries by itself, no need to specify them in format strings additionally. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names under src/schedule, src/math, src/init, src/idc. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for eq_fir. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for asrc. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for tensorflow, google, eq_iir. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for aria, dcblock, smart_amp, copier, selector. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for up_down_mixer, mixin_mixout, codec, crossover. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for mfcc, rtnr, mux, src, module_adapter. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for pipeline, drc, igo_nr, volume, multiband_drc, buffers, tdfb. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove verbatim function names for src/audio. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
There was a problem hiding this 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 removes redundant function names from logging format strings across the codebase. The change leverages Zephyr's automatic function name logging capability to eliminate verbose duplication in log messages.
- Removes function name prefixes from log format strings (e.g., "function(): message" becomes just "message")
- Standardizes entry point logging to use "entry" instead of function names
- Applies changes consistently across IPC, audio components, and scheduling modules
Reviewed Changes
Copilot reviewed 82 out of 82 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/schedule/*.c | Remove function names from scheduler and domain logging |
| src/ipc/*.c | Clean up IPC handler and helper function log messages |
| src/audio//.c | Update audio component logging across volume, EQ, DRC, and other modules |
| src/audio/pipeline/*.c | Simplify pipeline management logging |
| src/audio/module_adapter/*.c | Update module adapter and codec logging |
|
|
||
| if (md->state != MODULE_IDLE) { | ||
| comp_err(dev, "module_process(): wrong state of comp_id %x, state %d", | ||
| comp_err(dev, "wrong state of comp_id %x, state %d", |
Copilot
AI
Aug 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider using the standardized 'comp %x' format instead of 'comp_id %x' for consistency with other error messages in the codebase.
| comp_err(dev, "wrong state of comp_id %x, state %d", | |
| comp_err(dev, "wrong state of comp %x, state %d", |
|
@lrudyX not expecting build to fail as its passed in other tests ? |
|
obviously, this PR wasn't created manually, and it wasn't perfect - it left a lot of those function names in logs behind. For reference I used to find all those left-overs - only under sof/src - that line found 1300 of them (after I've removed a few more manually, so actually there are more). Some of them are false positives, but not many. To Be Continued. |
Zephyr adds function names to log entries automatically, remove excessive verbatim names globally