[Intel-gfx] [RFC 3/6] drm/i915: Give our log messages our name
Tvrtko Ursulin
tursulin at ursulin.net
Wed Jan 24 16:18:18 UTC 2018
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Define DRM_LOG_NAME to i915 so that the log messages we output change
from:
[drm] RC6 on
to:
[i915] RC6 on
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Cc: dri-devel at lists.freedesktop.org
---
drivers/gpu/drm/i915/i915_drv.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 8333692dac5a..2b48a7d2d129 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -30,6 +30,11 @@
#ifndef _I915_DRV_H_
#define _I915_DRV_H_
+#ifdef DRM_LOG_NAME
+#undef DRM_LOG_NAME
+#endif
+#define DRM_LOG_NAME "i915"
+
#include <uapi/drm/i915_drm.h>
#include <uapi/drm/drm_fourcc.h>
--
2.14.1
More information about the Intel-gfx
mailing list