diff mbox

[RFC,1/5] drm/i915: Give our log messages our name

Message ID 1481050681-23416-2-git-send-email-tvrtko.ursulin@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tvrtko Ursulin Dec. 6, 2016, 6:57 p.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Define DRM_NAME to i915 so that the log messages we output change from:

 [drm] RC6 on

to:

 [i915] RC6 on

Since I wasn't around in the beginning of DRM I wonder whether that
was the intended purpose of DRM_NAME or if it was something else.

Today it looks a bit messy with it being used by both macros and core
DRM helpers, like drm_dev_printk and drm_printk, meaning that this
change only affects some and not all log messages.

Following patches will try to correct that as well.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 include/uapi/drm/i915_drm.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index da32c2f6c3f9..b777a6b7b3dc 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -29,6 +29,9 @@ 
 
 #include "drm.h"
 
+#undef DRM_NAME
+#define DRM_NAME "i915"
+
 #if defined(__cplusplus)
 extern "C" {
 #endif