From: Aurabindo Pillai Date: Thu, 9 Apr 2020 01:28:14 +0000 (-0400) Subject: drm/amd/amdgpu: add print prefix for dev_* variants X-Git-Tag: block-5.8-2020-06-11~21^2~15^2~95 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=539489fc91ea773c0b124697da1ed6f0866a653e;p=linux-2.6-block.git drm/amd/amdgpu: add print prefix for dev_* variants Define dev_fmt macro for informative print messages Signed-off-by: Aurabindo Pillai Signed-off-by: Alex Deucher --- 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