Skip to content

Commit

Permalink
Testbench: use macro replace immediate number
Browse files Browse the repository at this point in the history
Direct numbers are hard to know what exactly means, it
actually represent log error level print, use macro to replace
it.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
  • Loading branch information
btian1 authored and lgirdwood committed Jan 4, 2024
1 parent 28e0652 commit 694053b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cmocka/src/common_mocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/ll_schedule.h>
#include <sof/schedule/schedule.h>
#include <user/trace.h>
#include <rtos/spinlock.h>
#include <sof/audio/component_ext.h>
#include <rtos/clk.h>
Expand All @@ -41,7 +42,7 @@ WEAK struct tr_ctx buffer_tr;
WEAK struct tr_ctx comp_tr;
WEAK struct tr_ctx ipc_tr;

int host_trace_level = 1;
int host_trace_level = LOG_LEVEL_ERROR;

void WEAK *rballoc_align(uint32_t flags, uint32_t caps, size_t bytes,
uint32_t alignment)
Expand Down

0 comments on commit 694053b

Please sign in to comment.