Output '|' before the source file name in LOG_END(), too, like in LOG_BODY()

Change-Id: I57d825d03321992d680670f3560e951bc0cb2005
This commit is contained in:
Tor Lillqvist
2018-07-13 17:49:21 +03:00
parent 3a9e536dfa
commit b4192de6fa

View File

@ -226,7 +226,7 @@ namespace Log
#define LOG_FTL(X) do { auto& l_ = Log::logger(); if (l_.fatal()) { LOG_BODY_(FATAL, "FTL", X); } } while (false)
#define LOG_SFL(X) do { auto& l_ = Log::logger(); if (l_.error()) { LOG_BODY_(FATAL, "FTL", X << " (" << Util::symbolicErrno(errno) << ": " << std::strerror(errno) << ")"); } } while (false)
#define LOG_END(l) do { l << __FILE__ << ':' << __LINE__; l.flush(); } while (false)
#define LOG_END(l) do { l << " | " << __FILE__ << ':' << __LINE__; l.flush(); } while (false)
#define LOG_CHECK(X) do { if (!(X)) { LOG_ERR("Check failed. Expected (" #X ")."); } } while (false)
#define LOG_CHECK_RET(X, RET) do { if (!(X)) { LOG_ERR("Check failed. Expected (" #X ")."); return RET; } } while (false)