X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Flog.h;h=a98a8cc9c83ee17ba9dff596368516874266305f;hp=0dfedfdb7138683899d38987f4bc4c27d0a36f6f;hb=eff96d65bd1101083e04cb3ff2468b3feea3ff9e;hpb=f8de7d373ff0a5d977adee1d1a464401ece60550;ds=sidebyside diff --git a/src/log.h b/src/log.h index 0dfedfd..a98a8cc 100644 --- a/src/log.h +++ b/src/log.h @@ -35,7 +35,7 @@ inline std::string methodName(const std::string& prettyFunction) #define Debug(...) LogEx(LOG_DEBUG, __func__, __FILE__, __LINE__, __VA_ARGS__) #define Error(...) LogEx(LOG_ERR, __func__, __FILE__, __LINE__, __VA_ARGS__) -#define Warn(...) LogEx(LOG_WARN, __func__, __FILE__, __LINE__, __VA_ARGS__) +#define Warn(...) LogEx(LOG_WARNING, __func__, __FILE__, __LINE__, __VA_ARGS__) extern void LogEx(int level, const char * funct, const char * file, int line, ...); // General function for printing log messages to stderr