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;
|
struct comp_dev;
|
||||||
|
|
||||||
/* pipeline tracing */
|
/* buffer tracing */
|
||||||
#define trace_buffer(__e, ...) \
|
#define trace_buffer(__e, ...) \
|
||||||
trace_event(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
|
trace_event(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
|
||||||
#define trace_buffer_error(__e, ...) \
|
#define trace_buffer_error(__e, ...) \
|
||||||
trace_error(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
|
trace_error(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
|
||||||
#define tracev_buffer(__e, ...) \
|
#define tracev_buffer(__e, ...) \
|
||||||
tracev_event(TRACE_CLASS_BUFFER, __e, ##__VA_ARGS__)
|
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 */
|
/* buffer callback types */
|
||||||
#define BUFF_CB_TYPE_PRODUCE BIT(0)
|
#define BUFF_CB_TYPE_PRODUCE BIT(0)
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#include <sof/spinlock.h>
|
#include <sof/spinlock.h>
|
||||||
#include <sof/string.h>
|
#include <sof/string.h>
|
||||||
#include <sof/trace/dma-trace.h>
|
#include <sof/trace/dma-trace.h>
|
||||||
#include <sof/trace/trace.h>
|
|
||||||
#include <ipc/topology.h>
|
#include <ipc/topology.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -298,8 +297,8 @@ int dma_trace_enable(struct dma_trace_data *d)
|
||||||
|
|
||||||
/* validate DMA context */
|
/* validate DMA context */
|
||||||
if (d->dc.dmac == NULL || d->dc.chan < 0) {
|
if (d->dc.dmac == NULL || d->dc.chan < 0) {
|
||||||
trace_error_atomic(TRACE_CLASS_BUFFER, "dma_trace_enable() "
|
trace_buffer_error_atomic("dma_trace_enable() error: not "
|
||||||
"error: not valid");
|
"valid");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue