Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2008 22:32:01 +0000 (UTC)
From:      Robert Noland <rnoland@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186386 - head/sys/dev/drm
Message-ID:  <200812212232.mBLMW29j044021@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rnoland
Date: Sun Dec 21 22:32:01 2008
New Revision: 186386
URL: http://svn.freebsd.org/changeset/base/186386

Log:
  Convert DRM_[DEBUG,ERROR,INFO] macros to c99 __VA_ARGS__.
  
  Approved by:	kib

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

Modified: head/sys/dev/drm/drmP.h
==============================================================================
--- head/sys/dev/drm/drmP.h	Sun Dec 21 22:30:37 2008	(r186385)
+++ head/sys/dev/drm/drmP.h	Sun Dec 21 22:32:01 2008	(r186386)
@@ -300,16 +300,16 @@ for ( ret = 0 ; !ret && !(condition) ; )
 	DRM_LOCK();						\
 }
 
-#define DRM_ERROR(fmt, arg...) \
+#define DRM_ERROR(fmt, ...) \
 	printf("error: [" DRM_NAME ":pid%d:%s] *ERROR* " fmt,		\
-	    DRM_CURRENTPID, __func__ , ## arg)
+	    DRM_CURRENTPID, __func__ , ##__VA_ARGS__)
 
-#define DRM_INFO(fmt, arg...)  printf("info: [" DRM_NAME "] " fmt , ## arg)
+#define DRM_INFO(fmt, ...)  printf("info: [" DRM_NAME "] " fmt , ##__VA_ARGS__)
 
-#define DRM_DEBUG(fmt, arg...) do {					\
+#define DRM_DEBUG(fmt, ...) do {					\
 	if (drm_debug_flag)						\
 		printf("[" DRM_NAME ":pid%d:%s] " fmt, DRM_CURRENTPID,	\
-			__func__ , ## arg);				\
+			__func__ , ##__VA_ARGS__);			\
 } while (0)
 
 typedef struct drm_pci_id_list



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