added some white space to fix preprocessor weirdness, ## was causing
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 25 Apr 2003 01:43:52 +0000 (01:43 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 25 Apr 2003 01:43:52 +0000 (01:43 +0000)
__FUNCTION__ to disappear instead of the comma?

lib/libinternal.h

index 9d669d7bced220701c73d9fed4ddfcac69b0c275..9f99f2389650035e035b1ac85d9fbdfc4eebf94c 100644 (file)
@@ -53,7 +53,7 @@
 #define debug_ptr(a)    if(!(a))fprintf(stderr," ** NULL pointer: " __FILE__ ", line %d\n",__LINE__);
 #define debug_int(a)    if((a)<0)fprintf(stderr," ** error: " __FILE__ ", line %d\n",__LINE__);
 
-#define COMEDILIB_DEBUG(level,format,args...) do{if(__comedi_loglevel>=(level))fprintf(stderr,"%s: " format, __FUNCTION__, ## args);}while(0)
+#define COMEDILIB_DEBUG(level,format,args...) do{if(__comedi_loglevel>=(level))fprintf(stderr,"%s: " format, __FUNCTION__ , ##args);}while(0)
 
 #define COMEDI_VERSION_CODE(a,b,c) (((a)<<16) | ((b)<<8) | (c))