diff options
author | Robert Noland <rnoland@2hip.net> | 2009-03-05 00:47:26 -0600 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-03-05 00:47:26 -0600 |
commit | 14503dafa79cfdea69d618f2c28dafb66765a8a0 (patch) | |
tree | d6280705281747a9f578c5edd3f1c2a3a93452fb /bsd-core | |
parent | 0a227a3361054f06da4bba34d02c8dadcd448e9a (diff) |
FreeBSD: Rework DRM_[DEBUG,ERROR,INFO] macros a bit.
Diffstat (limited to 'bsd-core')
-rw-r--r-- | bsd-core/drmP.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index b99b04ef..43910278 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -296,16 +296,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 |