aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurabindo Pillai <mail@aurabindo.in>2020-04-08 21:28:14 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-04-13 12:02:37 -0400
commit539489fc91ea773c0b124697da1ed6f0866a653e (patch)
tree4c736aa770be064bb9517808725d6961a7e62a41
parentd57229b1da7204dc0ec663478bc36c8fcf0314d0 (diff)
drm/amd/amdgpu: add print prefix for dev_* variants
Define dev_fmt macro for informative print messages Signed-off-by: Aurabindo Pillai <mail@aurabindo.in> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 20354f7b2b12..215f57765e5e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -34,6 +34,12 @@
#define pr_fmt(fmt) "amdgpu: " fmt
+#ifdef dev_fmt
+#undef dev_fmt
+#endif
+
+#define dev_fmt(fmt) "amdgpu: " fmt
+
#include "amdgpu_ctx.h"
#include <linux/atomic.h>