certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/libHLA tlsf.c


From: certi-cvs
Subject: [certi-cvs] certi/libHLA tlsf.c
Date: Mon, 31 May 2010 13:58:09 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      10/05/31 13:58:09

Modified files:
        libHLA         : tlsf.c 

Log message:
        Use unamed variadadic macro
        There is still a warning due to -pedantic

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/libHLA/tlsf.c?cvsroot=certi&r1=1.1&r2=1.2

Patches:
Index: tlsf.c
===================================================================
RCS file: /sources/certi/certi/libHLA/tlsf.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- tlsf.c      28 Mar 2010 13:36:32 -0000      1.1
+++ tlsf.c      31 May 2010 13:58:09 -0000      1.2
@@ -173,14 +173,14 @@
 
 #ifdef USE_PRINTF
 #include <stdio.h>
-# define PRINT_MSG(fmt, args...) printf(fmt, ## args)
-# define ERROR_MSG(fmt, args...) fprintf(stderr, fmt, ## args)
+# define PRINT_MSG(...) printf(__VA_ARGS__)
+# define ERROR_MSG(...) fprintf(stderr, __VA_ARGS__)
 #else
 # if !defined(PRINT_MSG)
-#  define PRINT_MSG(fmt, args...)
+#  define PRINT_MSG(...)
 # endif
 # if !defined(ERROR_MSG)
-#  define ERROR_MSG(fmt, args...)
+#  define ERROR_MSG(...)
 # endif
 #endif
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]