On Tue, Dec 23, 2008 at 10:29:02AM -0800, Al Chu wrote:

> > +#define    IBND_DEBUG(str, args...) \
> > +   if (ibdebug) printf("%s:%d; "str, __FILE__, __LINE__, ##args)
> > +#define    IBND_ERROR(str, args...) \
> > +   fprintf(stderr, "%s:%d; "str, __FILE__, __LINE__, ##args)
> 
> I believe the "args ..." and "##args" are only for gcc.  Not sure how
> much this portability issue matters for OFED.  Personally, I always
> do

Right that format is an obsolete gcc extension. Ira, it should be

     #define debug(format, ...) fprintf (stderr, format, __VA_ARGS__)

Which is how C99 standardized varadic macros.

Jason
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to