Bug 1060419 - make log_print use Printf.h, r=froydnj

MozReview-Commit-ID: BIZ1GQEZ1vs
This commit is contained in:
Tom Tromey
2016-12-15 20:16:31 -07:00
parent c8c2308188
commit a4b717ab39
216 changed files with 1550 additions and 1236 deletions

View File

@@ -30,6 +30,7 @@
#include "nsNullPrincipal.h"
#include "mozilla/Logging.h"
#include "mozilla/SizePrintfMacros.h"
using mozilla::fallible;
using mozilla::LogLevel;
@@ -1058,7 +1059,7 @@ nsExpatDriver::ConsumeToken(nsScanner& aScanner, bool& aFlushTokens)
aScanner.EndReading(end);
MOZ_LOG(gExpatDriverLog, LogLevel::Debug,
("Remaining in expat's buffer: %i, remaining in scanner: %i.",
("Remaining in expat's buffer: %i, remaining in scanner: %" PRIuSIZE ".",
mExpatBuffered, Distance(start, end)));
// We want to call Expat if we have more buffers, or if we know there won't
@@ -1206,7 +1207,7 @@ nsExpatDriver::ConsumeToken(nsScanner& aScanner, bool& aFlushTokens)
aScanner.Mark();
MOZ_LOG(gExpatDriverLog, LogLevel::Debug,
("Remaining in expat's buffer: %i, remaining in scanner: %i.",
("Remaining in expat's buffer: %i, remaining in scanner: %" PRIuSIZE ".",
mExpatBuffered, Distance(currentExpatPosition, end)));
return NS_SUCCEEDED(mInternalState) ? NS_ERROR_HTMLPARSER_EOF : NS_OK;