mirror of https://github.com/thesofproject/sof.git
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:
parent
5740092514
commit
4b5110b88b
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue