Skip to content

Commit dbc8e0f

Browse files
marc-hblgirdwood
authored andcommitted
dma-trace.c: fix unsupported mtrace_printf("%s", ...) string specifier
The dictionary does not support character strings. Fixes commit c11562b ("dma-trace: Align DMA buffer correctly to fix dma tracing issues") Take the opportunity to log the d pointer (which _is_ supported). Fixes the following error message: TIMESTAMP (us) DELTA C# COMPONENT LOCATION CONTENT error: String printing is not supported [ 2.604167] ( 0.000000) c0 dma-trace src/trace/dma-trace.c:266 ERROR <String @ 0xbe035e60> failed: no DMAC Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 9fb7a60 commit dbc8e0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/trace/dma-trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static int dma_trace_buffer_init(struct dma_trace_data *d)
261261

262262
if (!d || !d->dc.dmac) {
263263
mtrace_printf(LOG_LEVEL_ERROR,
264-
"%s failed: no DMAC!", __func__);
264+
"dma_trace_buffer_init() failed, no DMAC! d=%p", d);
265265
return -ENODEV;
266266
}
267267

0 commit comments

Comments
 (0)