Skip to content

Commit d72191f

Browse files
committed
Trace: replace non-zephyr logging interface
Replace it with new defined logging interface without context dependency. Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
1 parent 72a9966 commit d72191f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/include/sof/trace/trace.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -408,22 +408,22 @@ struct tr_ctx {
408408
/* tracing from infrastructure part */
409409

410410
#define tr_err_atomic(ctx, fmt, ...) \
411-
trace_error_atomic_with_ids(_TRACE_INV_CLASS, ctx, \
411+
trace_error_atomic_with_ids_nonzephyr(_TRACE_INV_CLASS, \
412412
_TRACE_INV_ID, _TRACE_INV_ID, \
413413
fmt, ##__VA_ARGS__)
414414

415415
#define tr_warn_atomic(ctx, fmt, ...) \
416-
trace_warn_atomic_with_ids(_TRACE_INV_CLASS, ctx, \
416+
trace_warn_atomic_with_ids_nonzephyr(_TRACE_INV_CLASS, \
417417
_TRACE_INV_ID, _TRACE_INV_ID, \
418418
fmt, ##__VA_ARGS__)
419419

420420
#define tr_info_atomic(ctx, fmt, ...) \
421-
trace_event_atomic_with_ids(_TRACE_INV_CLASS, ctx, \
421+
trace_event_atomic_with_ids_nonzephyr(_TRACE_INV_CLASS, \
422422
_TRACE_INV_ID, _TRACE_INV_ID, \
423423
fmt, ##__VA_ARGS__)
424424

425425
#define tr_dbg_atomic(ctx, fmt, ...) \
426-
tracev_event_atomic_with_ids(_TRACE_INV_CLASS, ctx, \
426+
tracev_event_atomic_with_ids_nonzephyr(_TRACE_INV_CLASS, \
427427
_TRACE_INV_ID, _TRACE_INV_ID, \
428428
fmt, ##__VA_ARGS__)
429429

@@ -448,20 +448,20 @@ struct tr_ctx {
448448
#endif
449449

450450
#define tr_err(ctx, fmt, ...) \
451-
trace_error_with_ids(_TRACE_INV_CLASS, ctx, \
451+
trace_error_with_ids_nonzephyr(_TRACE_INV_CLASS, \
452452
_TRACE_INV_ID, _TRACE_INV_ID, fmt, ##__VA_ARGS__)
453453

454454
#define tr_warn(ctx, fmt, ...) \
455-
trace_warn_with_ids(_TRACE_INV_CLASS, ctx, \
455+
trace_warn_with_ids_nonzephyr(_TRACE_INV_CLASS, \
456456
_TRACE_INV_ID, _TRACE_INV_ID, fmt, ##__VA_ARGS__)
457457

458458
#define tr_info(ctx, fmt, ...) \
459-
trace_event_with_ids(_TRACE_INV_CLASS, ctx, \
459+
trace_event_with_ids_nonzephyr(_TRACE_INV_CLASS, \
460460
_TRACE_INV_ID, _TRACE_INV_ID, fmt, ##__VA_ARGS__)
461461

462462
/* tracev_ output depends on CONFIG_TRACEV=y */
463463
#define tr_dbg(ctx, fmt, ...) \
464-
tracev_event_with_ids(_TRACE_INV_CLASS, ctx, \
464+
tracev_event_with_ids_nonzephyr(_TRACE_INV_CLASS, \
465465
_TRACE_INV_ID, _TRACE_INV_ID, fmt, ##__VA_ARGS__)
466466

467467
#endif

0 commit comments

Comments
 (0)