mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-29 23:10:22 +01:00
Fix for compiling on gcc 2.95 (according to rwatson)
This commit is contained in:
parent
563bc3158d
commit
d22a19a370
2 changed files with 6 additions and 6 deletions
|
|
@ -285,17 +285,17 @@ find_first_zero_bit(atomic_t *p, int max)
|
|||
|
||||
/* Macros to make printf easier */
|
||||
#define DRM_ERROR(fmt, arg...) \
|
||||
printf("error: " "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__, ##arg)
|
||||
printf("error: " "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__, ## arg)
|
||||
#define DRM_MEM_ERROR(area, fmt, arg...) \
|
||||
printf("error: " "[" DRM_NAME ":%s:%s] *ERROR* " fmt , \
|
||||
__FUNCTION__, DRM(mem_stats)[area].name , ##arg)
|
||||
#define DRM_INFO(fmt, arg...) printf("info: " "[" DRM_NAME "] " fmt , ##arg)
|
||||
#define DRM_INFO(fmt, arg...) printf("info: " "[" DRM_NAME "] " fmt , ## arg)
|
||||
|
||||
#if DRM_DEBUG_CODE
|
||||
#define DRM_DEBUG(fmt, arg...) \
|
||||
do { \
|
||||
if (DRM(flags) & DRM_FLAG_DEBUG) \
|
||||
printf("[" DRM_NAME ":%s] " fmt , __FUNCTION__, ##arg); \
|
||||
printf("[" DRM_NAME ":%s] " fmt , __FUNCTION__, ## arg); \
|
||||
} while (0)
|
||||
#else
|
||||
#define DRM_DEBUG(fmt, arg...) do { } while (0)
|
||||
|
|
|
|||
|
|
@ -285,17 +285,17 @@ find_first_zero_bit(atomic_t *p, int max)
|
|||
|
||||
/* Macros to make printf easier */
|
||||
#define DRM_ERROR(fmt, arg...) \
|
||||
printf("error: " "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__, ##arg)
|
||||
printf("error: " "[" DRM_NAME ":%s] *ERROR* " fmt , __FUNCTION__, ## arg)
|
||||
#define DRM_MEM_ERROR(area, fmt, arg...) \
|
||||
printf("error: " "[" DRM_NAME ":%s:%s] *ERROR* " fmt , \
|
||||
__FUNCTION__, DRM(mem_stats)[area].name , ##arg)
|
||||
#define DRM_INFO(fmt, arg...) printf("info: " "[" DRM_NAME "] " fmt , ##arg)
|
||||
#define DRM_INFO(fmt, arg...) printf("info: " "[" DRM_NAME "] " fmt , ## arg)
|
||||
|
||||
#if DRM_DEBUG_CODE
|
||||
#define DRM_DEBUG(fmt, arg...) \
|
||||
do { \
|
||||
if (DRM(flags) & DRM_FLAG_DEBUG) \
|
||||
printf("[" DRM_NAME ":%s] " fmt , __FUNCTION__, ##arg); \
|
||||
printf("[" DRM_NAME ":%s] " fmt , __FUNCTION__, ## arg); \
|
||||
} while (0)
|
||||
#else
|
||||
#define DRM_DEBUG(fmt, arg...) do { } while (0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue