drm/amd/amdgpu: add print prefix for dev_* variants
authorAurabindo Pillai <mail@aurabindo.in>
Thu, 9 Apr 2020 01:28:14 +0000 (21:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Apr 2020 16:02:37 +0000 (12:02 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h

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