Bug 1543501 - Print a 'token' that allows output from MOZ_DBG() to be easily grepped for among other output. r=heycam

Differential Revision: https://phabricator.services.mozilla.com/D26984

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-04-12 16:49:56 +00:00
parent 4bfebae0ab
commit 422903589d

View File

@ -89,7 +89,7 @@ template <typename T>
auto&& MozDbg(const char* aFile, int aLine, const char* aExpression,
T&& aValue) {
std::ostringstream s;
s << '[' << aFile << ':' << aLine << "] " << aExpression << " = ";
s << "[MozDbg] [" << aFile << ':' << aLine << "] " << aExpression << " = ";
mozilla::DebugValue(s, std::forward<T>(aValue));
s << '\n';
fputs(s.str().c_str(), stderr);