Mesa (master): radeon: Use PRINTLIKE macro.

Matt Turner mattst88 at kemper.freedesktop.org
Thu Sep 25 20:59:07 UTC 2014


Module: Mesa
Branch: master
Commit: 50e2f700932bb846dc36b193e533593d45beac44
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=50e2f700932bb846dc36b193e533593d45beac44

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sun Sep 21 18:43:09 2014 -0700

radeon: Use PRINTLIKE macro.

---

 src/mesa/drivers/dri/radeon/radeon_debug.h |    9 +--------
 1 file changed, 1 insertion(+), 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




More information about the mesa-commit mailing list