Commit da1a9d6
committed
ipc4: fix logging backend initialization
This patch addresses an issue with the logging backend initialization in
the ipc4/logging.c file. The previous implementation used
log_backend_activate, which does not fully enable the backend for log
collection. This was initially masked by the fact that backends are
currently autostarted, but disabling backend autostart would reveal that
logs are not being collected as expected. By switching to
log_backend_enable, the backend is correctly initialized, ensuring logs
are collected reliably.
The use of CONFIG_SOF_LOG_LEVEL as a parameter does not impact runtime
filtering, as it is not enabled, but it aligns with the current logging
configuration practices.
This update fixes the logging backend initialization issue, ensuring
reliable log collection within the SOF firmware, and prepares the system
for scenarios where backend autostart might be disabled, thereby
addressing a hidden problem in the logging setup.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 632dca3 commit da1a9d6
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
0 commit comments