소스 검색

disp: msm: sde: add pr_fmt for SDE VM layer

Add pr_fmt definition in SDE VM modules for simplifying
searching for DRM driver logs.

Change-Id: I3f83b52dec6479dd89306aed7d84e73928f4e9ef
Signed-off-by: Steve Cohen <[email protected]>
Steve Cohen 4 년 전
부모
커밋
cce49a77c5
3개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      msm/sde/sde_vm_common.c
  2. 3 0
      msm/sde/sde_vm_primary.c
  3. 2 1
      msm/sde/sde_vm_trusted.c

+ 2 - 0
msm/sde/sde_vm_common.c

@@ -3,6 +3,8 @@
  * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  */
 
+#define pr_fmt(fmt)	"[drm:%s:%d] " fmt, __func__, __LINE__
+
 #include <linux/list_sort.h>
 #include "linux/sde_rsc.h"
 #include "dsi/dsi_display.h"

+ 3 - 0
msm/sde/sde_vm_primary.c

@@ -2,6 +2,9 @@
 /*
  * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  */
+
+#define pr_fmt(fmt)	"[drm:%s:%d] " fmt, __func__, __LINE__
+
 #include <linux/notifier.h>
 #include <linux/gunyah/gh_rm_drv.h>
 #include <linux/gunyah/gh_irq_lend.h>

+ 2 - 1
msm/sde/sde_vm_trusted.c

@@ -3,6 +3,8 @@
  * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  */
 
+#define pr_fmt(fmt)	"[drm:%s:%d] " fmt, __func__, __LINE__
+
 #include <linux/gunyah/gh_rm_drv.h>
 #include <linux/gunyah/gh_irq_lend.h>
 #include <linux/gunyah/gh_mem_notifier.h>
@@ -15,7 +17,6 @@
 #include "sde_vm.h"
 #include "sde_vm_msgq.h"
 
-
 #define to_vm_trusted(vm) ((struct sde_vm_trusted *)vm)
 
 static int __sgl_cmp(const void *a, const void *b)