Commit 1b7eae43 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Benjamin Cabé
Browse files

logging: mtrace: don't activate with hook == NULL

adsp_mtrace_log_init() can be called with its argument equal NULL,
mtrace_active shouldn't be set to true in that case.

Signed-off-by: default avatarGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
parent 1f7a694a
Loading
Loading
Loading
Loading
+1 −1
Changes for subsys/logging/backends/log_backend_adsp_mtrace.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ void adsp_mtrace_log_init(adsp_mtrace_log_hook_t hook)
	mtrace_init();

	mtrace_hook = hook;
	mtrace_active = true;
	mtrace_active = !!hook;
}

const struct log_backend *log_backend_adsp_mtrace_get(void)