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

Commit 5f1c9c90 authored by Hemant Kumar's avatar Hemant Kumar
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 962f8aa3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -788,7 +788,12 @@ void mhi_debug_reg_dump(struct mhi_controller *mhi_cntrl);

#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