summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAurabindo Pillai <mail@aurabindo.in>2020-04-08 21:28:13 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-04-13 12:02:35 -0400
commitd57229b1da7204dc0ec663478bc36c8fcf0314d0 (patch)
treea1c8a0f6416797169b7205399442251a333e7c40 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentbba8289b8f02e325ccd74d69ecbb499fa58961a7 (diff)
downloadlwn-d57229b1da7204dc0ec663478bc36c8fcf0314d0.tar.gz
lwn-d57229b1da7204dc0ec663478bc36c8fcf0314d0.zip
drm/amd/amdgpu: add prefix for pr_* prints
amdgpu uses lots of pr_* calls for printing error messages. With this prefix, errors shall be more obvious to the end use regarding its origin, and may help debugging. Prefix format: [xxx.xxxxx] amdgpu: ... Signed-off-by: Aurabindo Pillai <mail@aurabindo.in> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-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 164c545d2432..20354f7b2b12 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -28,6 +28,12 @@
#ifndef __AMDGPU_H__
#define __AMDGPU_H__
+#ifdef pr_fmt
+#undef pr_fmt
+#endif
+
+#define pr_fmt(fmt) "amdgpu: " fmt
+
#include "amdgpu_ctx.h"
#include <linux/atomic.h>