]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/amdgpu: add prefix for pr_* prints
authorAurabindo Pillai <mail@aurabindo.in>
Thu, 9 Apr 2020 01:28:13 +0000 (21:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Apr 2020 16:02:35 +0000 (12:02 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h

index 164c545d243264e74d08a5595a0f9c1565fe6e86..20354f7b2b12644ad52db279211be8d8449b2025 100644 (file)
 #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>