projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b66791d
)
radeon: Use PRINTLIKE macro.
author
Matt Turner
<mattst88@gmail.com>
Mon, 22 Sep 2014 01:43:09 +0000
(18:43 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Thu, 25 Sep 2014 20:57:29 +0000
(13:57 -0700)
src/mesa/drivers/dri/radeon/radeon_debug.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_debug.h
b/src/mesa/drivers/dri/radeon/radeon_debug.h
index 449c27a3fe104bffd115cda5b62b3ca318721bff..b2436eb840bb3d2d7e0d700fabde4be5363da17a 100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_debug.h
+++ b/
src/mesa/drivers/dri/radeon/radeon_debug.h
@@
-94,18
+94,11
@@
static inline int radeon_is_debug_enabled(const radeon_debug_type_t type,
return RADEON_DEBUG_LEVEL >= level
&& (type & radeon_enabled_debug_types);
}
return RADEON_DEBUG_LEVEL >= level
&& (type & radeon_enabled_debug_types);
}
-/*
- * define macro for gcc specific __attribute__ if using alternative compiler
- */
-#ifndef __GNUC__
-#define __attribute__(x) /*empty*/
-#endif
-
extern void _radeon_print(const radeon_debug_type_t type,
const radeon_debug_level_t level,
const char* message,
extern void _radeon_print(const radeon_debug_type_t type,
const radeon_debug_level_t level,
const char* message,
- ...)
__attribute__((format(printf,3,4))
);
+ ...)
PRINTFLIKE(3, 4
);
/**
* Print out debug message if channel specified by type is enabled
* and compile time debugging level is at least as high as level parameter
/**
* Print out debug message if channel specified by type is enabled
* and compile time debugging level is at least as high as level parameter