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

Commit d35e7e89 authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: utils: modify debug function logic" into camera-kernel.lnx.4.0

parents 21017701 cfb8c413
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -257,12 +257,11 @@ const char *cam_get_tag_name(unsigned int tag_id)
void cam_debug_log(unsigned int module_id, const char *func, const int line,
	const char *fmt, ...)
{
	if (debug_mdl & module_id) {
		char str_buffer[STR_BUFFER_MAX_LENGTH];
		va_list args;

		va_start(args, fmt);

	if (debug_mdl & module_id) {
		vsnprintf(str_buffer, STR_BUFFER_MAX_LENGTH, fmt, args);

		if ((debug_type == 0) || (debug_type == 2)) {
@@ -281,10 +280,10 @@ void cam_debug_log(unsigned int module_id, const char *func, const int line,
				func, line, str_buffer);
			trace_cam_log_debug(trace_buffer);
		}
	}

		va_end(args);
	}
}

void cam_debug_trace(unsigned int tag, unsigned int module_id,
	const char *func, const int line, const char *fmt, ...)