From cce49a77c58509ff0ccbdd93254ba41bd1380a2d Mon Sep 17 00:00:00 2001 From: Steve Cohen Date: Fri, 16 Jul 2021 20:35:16 -0400 Subject: [PATCH] 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 --- msm/sde/sde_vm_common.c | 2 ++ msm/sde/sde_vm_primary.c | 3 +++ msm/sde/sde_vm_trusted.c | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/msm/sde/sde_vm_common.c b/msm/sde/sde_vm_common.c index 39ecd99817..5f4b131818 100644 --- a/msm/sde/sde_vm_common.c +++ b/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 #include "linux/sde_rsc.h" #include "dsi/dsi_display.h" diff --git a/msm/sde/sde_vm_primary.c b/msm/sde/sde_vm_primary.c index 16d48c7935..970bc86657 100644 --- a/msm/sde/sde_vm_primary.c +++ b/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 #include #include diff --git a/msm/sde/sde_vm_trusted.c b/msm/sde/sde_vm_trusted.c index c5e48637a7..e244d3afdc 100644 --- a/msm/sde/sde_vm_trusted.c +++ b/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 #include #include @@ -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)