Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b9ef503 authored by Hemant Kumar's avatar Hemant Kumar Committed by Gerrit - the friendly Code Review server
Browse files

mhi: Allow ipc logging in perf build



MHI ipc verbose level logs gets compiled out in perf build.
Enable ipc logging when log level is set to MHI_MSG_LVL_VERBOSE.
This allows to enable mhi ipc logging on demand when log level
is changed to MHI_MSG_LVL_VERBOSE form MHI_MSG_LVL_ERROR in perf
build.

Change-Id: I63c6cd6922f12c8d31061de9cbb27e2101e5758b
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 6fc1d9f2
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -789,7 +789,12 @@ char *mhi_get_restart_reason(const char *name);

#else

#define MHI_VERB(fmt, ...)
#define MHI_VERB(fmt, ...) do { \
		if (mhi_cntrl->log_buf && \
		    (mhi_cntrl->log_lvl <= MHI_MSG_LVL_VERBOSE)) \
			ipc_log_string(mhi_cntrl->log_buf, "[D][%s] " fmt, \
				       __func__, ##__VA_ARGS__); \
} while (0)

#endif