mirror of https://gitee.com/bigwinds/arangodb
fix type for __LINE__ in log macro definition
This commit is contained in:
parent
4b66957f09
commit
e73118dd75
|
@ -87,7 +87,7 @@ NS_END
|
|||
#if defined(_MSC_VER)
|
||||
#define IR_LOG_FORMATED(level, prefix, format, ...) \
|
||||
if (::iresearch::logger::enabled(level)) \
|
||||
std::fprintf(::iresearch::logger::output(level), "%s: %s:%u " format "\n", prefix, __FILE__, __LINE__, __VA_ARGS__)
|
||||
std::fprintf(::iresearch::logger::output(level), "%s: %s:%d " format "\n", prefix, __FILE__, __LINE__, __VA_ARGS__)
|
||||
|
||||
#define IR_FRMT_FATAL(format, ...) IR_LOG_FORMATED(::iresearch::logger::IRL_FATAL, "FATAL", format, __VA_ARGS__)
|
||||
#define IR_FRMT_ERROR(format, ...) IR_LOG_FORMATED(::iresearch::logger::IRL_ERROR, "ERROR", format, __VA_ARGS__)
|
||||
|
@ -98,7 +98,7 @@ NS_END
|
|||
#else // use a GNU extension for ignoring the trailing comma: ', ##__VA_ARGS__'
|
||||
#define IR_LOG_FORMATED(level, prefix, format, ...) \
|
||||
if (::iresearch::logger::enabled(level)) \
|
||||
std::fprintf(::iresearch::logger::output(level), "%s: %s:%u " format "\n", prefix, __FILE__, __LINE__, ##__VA_ARGS__)
|
||||
std::fprintf(::iresearch::logger::output(level), "%s: %s:%d " format "\n", prefix, __FILE__, __LINE__, ##__VA_ARGS__)
|
||||
|
||||
#define IR_FRMT_FATAL(format, ...) IR_LOG_FORMATED(::iresearch::logger::IRL_FATAL, "FATAL", format, ##__VA_ARGS__)
|
||||
#define IR_FRMT_ERROR(format, ...) IR_LOG_FORMATED(::iresearch::logger::IRL_ERROR, "ERROR", format, ##__VA_ARGS__)
|
||||
|
|
Loading…
Reference in New Issue