aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm/drmP.h
diff options
context:
space:
mode:
authorRobert Noland <rnoland@FreeBSD.org>2008-12-21 22:32:01 +0000
committerRobert Noland <rnoland@FreeBSD.org>2008-12-21 22:32:01 +0000
commit241dd5673c1ed84fb1d38476a973f6e17b6e07d0 (patch)
tree7972b06961a109157619664cb6b933d53f9f2650 /sys/dev/drm/drmP.h
parent213ab42e6b1932f817a2c6e6fa0a93bd71900bc7 (diff)
downloadsrc-241dd5673c1ed84fb1d38476a973f6e17b6e07d0.tar.gz
src-241dd5673c1ed84fb1d38476a973f6e17b6e07d0.zip
Convert DRM_[DEBUG,ERROR,INFO] macros to c99 __VA_ARGS__.
Approved by: kib
Notes
Notes: svn path=/head/; revision=186386
Diffstat (limited to 'sys/dev/drm/drmP.h')
-rw-r--r--sys/dev/drm/drmP.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/drm/drmP.h b/sys/dev/drm/drmP.h
index 25a3fa88d9ff..94361aede7f4 100644
--- a/sys/dev/drm/drmP.h
+++ b/sys/dev/drm/drmP.h
@@ -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