summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-09-21 18:43:09 -0700
committerMatt Turner <mattst88@gmail.com>2014-09-25 13:57:29 -0700
commit50e2f700932bb846dc36b193e533593d45beac44 (patch)
tree258eaf77d12f139e22126ad6db546854a445e92f /src/mesa/drivers/dri/radeon
parentb66791d47f037d9ca1ec440885019ce8d9dd199d (diff)
downloadexternal_mesa3d-50e2f700932bb846dc36b193e533593d45beac44.zip
external_mesa3d-50e2f700932bb846dc36b193e533593d45beac44.tar.gz
external_mesa3d-50e2f700932bb846dc36b193e533593d45beac44.tar.bz2
radeon: Use PRINTLIKE macro.
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_debug.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_debug.h b/src/mesa/drivers/dri/radeon/radeon_debug.h
index 449c27a..b2436eb 100644
--- 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);
}
-/*
- * 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,
- ...) __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