From: Vincent Bernat Date: Thu, 9 Jul 2009 19:30:14 +0000 (+0200) Subject: Compatibility with gcc 2.95.x: add spaces around __VA__ARGS__ X-Git-Tag: 0.5.0~37^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=563e2dfc9648e35868de04b20d97ad198d9f9a35;p=thirdparty%2Flldpd.git Compatibility with gcc 2.95.x: add spaces around __VA__ARGS__ --- diff --git a/src/lldpd.h b/src/lldpd.h index d3cc84fe..e1c76679 100644 --- a/src/lldpd.h +++ b/src/lldpd.h @@ -416,13 +416,13 @@ char *dmi_asset(); /* log.c */ void log_init(int); void log_warn(const char *, ...); -#define LLOG_WARN(x,...) log_warn("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_WARN(x,...) log_warn("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void log_warnx(const char *, ...); -#define LLOG_WARNX(x,...) log_warnx("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_WARNX(x,...) log_warnx("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void log_info(const char *, ...); -#define LLOG_INFO(x,...) log_info("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_INFO(x,...) log_info("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void log_debug(const char *, ...); -#define LLOG_DEBUG(x,...) log_debug("%s: " x, __FUNCTION__, ##__VA_ARGS__) +#define LLOG_DEBUG(x,...) log_debug("%s: " x, __FUNCTION__ , ## __VA_ARGS__) void fatal(const char *); void fatalx(const char *);