Logger: Print correct source file and line number
Before this commit, always Logger.cpp:53 was being printed.
Change-Id: Ie5c64b4961c7c41d23484784a93eda5e08331f08
diff --git a/CommonLibs/Logger.cpp b/CommonLibs/Logger.cpp
index ac3de42..393d882 100644
--- a/CommonLibs/Logger.cpp
+++ b/CommonLibs/Logger.cpp
@@ -50,7 +50,7 @@
ScopedLock lock(gLogToLock);
// The COUT() macro prevents messages from stomping each other but adds uninteresting thread numbers,
// so just use std::cout.
- LOGP(mCategory, mPriority, fmt, mStream.str().c_str());
+ LOGPSRC(mCategory, mPriority, filename, line, fmt, mStream.str().c_str());
}
ostringstream& Log::get()