dma-trace: use dedicated trace_buffer_error_atomic macro

Creates trace_buffer_error_atomic macro and changes
usage in dma-trace.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2019-07-17 12:00:23 +02:00 committed by Tomasz Lauda
parent 5740092514
commit 4b5110b88b
2 changed files with 5 additions and 4 deletions

View File

@ -21,13 +21,15 @@
struct comp_dev;
/* pipeline tracing */
/* buffer tracing */
#define trace_buffer(__e, ...) \
trace_event(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
#define trace_buffer_error(__e, ...) \
trace_error(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
#define tracev_buffer(__e, ...) \
tracev_event(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
#define trace_buffer_error_atomic(__e, ...) \
trace_error_atomic(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
/* buffer callback types */
#define BUFF_CB_TYPE_PRODUCE BIT(0)

View File

@ -19,7 +19,6 @@
#include <sof/spinlock.h>
#include <sof/string.h>
#include <sof/trace/dma-trace.h>
#include <sof/trace/trace.h>
#include <ipc/topology.h>
#include <config.h>
#include <errno.h>
@ -298,8 +297,8 @@ int dma_trace_enable(struct dma_trace_data *d)
/* validate DMA context */
if (d->dc.dmac == NULL || d->dc.chan < 0) {
trace_error_atomic(TRACE_CLASS_BUFFER, "dma_trace_enable() "
"error: not valid");
trace_buffer_error_atomic("dma_trace_enable() error: not "
"valid");
return -ENODEV;
}