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

Commit a130990b authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata
Browse files

drm/msm/sde: print debugfs input for command transfer



Print command requested for transfer to panel from
debugfs node.

Change-Id: I7f33d7554ebd725a5e735245116c4028ef551aa5
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
parent f92cc233
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1523,7 +1523,7 @@ static ssize_t _sde_debugfs_conn_cmd_tx_write(struct file *file,
	}
	input[count] = '\0';

	SDE_DEBUG("input: %s\n", input);
	SDE_INFO("Command requested for trasnfer to panel: %s\n", input);

	input_copy = kstrdup(input, GFP_KERNEL);
	if (!input_copy) {
+12 −0
Original line number Diff line number Diff line
@@ -54,6 +54,18 @@
			pr_debug(fmt, ##__VA_ARGS__);                      \
	} while (0)

/**
 * SDE_INFO - macro for kms/plane/crtc/encoder/connector logs
 * @fmt: Pointer to format string
 */
#define SDE_INFO(fmt, ...)                                                \
	do {                                                               \
		if (unlikely(drm_debug & DRM_UT_KMS))                      \
			DRM_INFO(fmt, ##__VA_ARGS__); \
		else                                                       \
			pr_info(fmt, ##__VA_ARGS__);                      \
	} while (0)

/**
 * SDE_DEBUG_DRIVER - macro for hardware driver logging
 * @fmt: Pointer to format string