Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2015 21:31:04 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287172 - head/sys/dev/drm2
Message-ID:  <201508262131.t7QLV4IP066625@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Aug 26 21:31:04 2015
New Revision: 287172
URL: https://svnweb.freebsd.org/changeset/base/287172

Log:
  Add more DRM_* debug macros from linux 3.8.13

Modified:
  head/sys/dev/drm2/drmP.h

Modified: head/sys/dev/drm2/drmP.h
==============================================================================
--- head/sys/dev/drm2/drmP.h	Wed Aug 26 21:17:48 2015	(r287171)
+++ head/sys/dev/drm2/drmP.h	Wed Aug 26 21:31:04 2015	(r287172)
@@ -204,18 +204,43 @@ struct drm_device;
 			__func__ , ##__VA_ARGS__);			\
 } while (0)
 
-#define DRM_DEBUG_KMS(fmt, ...) do {					\
+#define DRM_DEBUG_DRIVER(fmt, ...) do {					\
 	if ((drm_debug & DRM_DEBUGBITS_KMS) != 0)			\
 		printf("[" DRM_NAME ":KMS:pid%d:%s] " fmt, DRM_CURRENTPID,\
 			__func__ , ##__VA_ARGS__);			\
 } while (0)
 
-#define DRM_DEBUG_DRIVER(fmt, ...) do {					\
+#define DRM_DEBUG_KMS(fmt, ...) do {					\
 	if ((drm_debug & DRM_DEBUGBITS_KMS) != 0)			\
 		printf("[" DRM_NAME ":KMS:pid%d:%s] " fmt, DRM_CURRENTPID,\
 			__func__ , ##__VA_ARGS__);			\
 } while (0)
 
+#define DRM_LOG(fmt, args...) do {				\
+	if ((drm_debug & DRM_DEBUGBITS_KMS) != 0)			\
+		printf("[" DRM_NAME "]:pid%d:%s]" fmt, DRM_CURRENTPID,\
+			__func__ , ##__VA_ARGS__);			\
+} while (0)
+
+#define DRM_LOG_KMS(fmt, args...) do {				\
+	if ((drm_debug & DRM_DEBUGBITS_KMS) != 0)			\
+		printf("[" DRM_NAME "]:KMS:pid%d:%s]" fmt, DRM_CURRENTPID,\
+			__func__ , ##__VA_ARGS__);			\
+} while (0)
+
+#define DRM_LOG_MODE(fmt, args...) do {				\
+	if ((drm_debug & DRM_DEBUGBITS_KMS) != 0)			\
+		printf("[" DRM_NAME "]:pid%d:%s]" fmt, DRM_CURRENTPID,\
+			__func__ , ##__VA_ARGS__);			\
+} while (0)
+
+#define DRM_LOG_DRIVER(fmt, args...) do {				\
+	if ((drm_debug & DRM_DEBUGBITS_KMS) != 0)			\
+		printf("[" DRM_NAME "]:KMS:pid%d:%s]" fmt, DRM_CURRENTPID,\
+			__func__ , ##__VA_ARGS__);			\
+} while (0)
+
+
 /*@}*/
 
 /***********************************************************************/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508262131.t7QLV4IP066625>