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

Commit f0de1133 authored by Karthikeyan Periasamy's avatar Karthikeyan Periasamy Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Debug message format to improve readability



 - Removed unwanted debug messages
 - Print FW message in one line

CRs-Fixed: 2228683
Change-Id: Id87caca15eb7661ee6075ccbfcc017cc211f94fd
Signed-off-by: default avatarKarthikeyan Periasamy <kperiasa@codeaurora.org>
parent 74454aa8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ extern bool msm_vidc_syscache_disable;
	} while (0)

#define MSM_VIDC_ERROR(value)					\
	do {							\
	do {	if (value)					\
			dprintk(VIDC_DBG, "BugOn");		\
		BUG_ON(value);					\
	} while (0)
+8 −1
Original line number Diff line number Diff line
@@ -3162,7 +3162,14 @@ static void __flush_debug_queue(struct venus_hfi_device *device, u8 *packet)
		} else {
			struct hfi_msg_sys_debug_packet *pkt =
				(struct hfi_msg_sys_debug_packet *) packet;
			dprintk(log_level, "%s", pkt->rg_msg_data);
			/*
			 * All fw messages starts with new line character. This
			 * causes dprintk to print this message in two lines
			 * in the kernel log. Ignoring the first character
			 * from the message fixes this to print it in a single
			 * line.
			 */
			dprintk(log_level, "%s", &pkt->rg_msg_data[1]);
		}
	}