Bug 1100773 patch 2 - Convert style rule List methods to use fprintf_stderr. r=heycam

Note that getting decent logcat output on Android and B2G requires not
splitting lines of output across multiple fprintf_stderr calls.
This commit is contained in:
L. David Baron
2014-11-26 22:29:44 -08:00
parent 4bd15269cc
commit ff080cde67
10 changed files with 166 additions and 114 deletions

View File

@@ -171,10 +171,11 @@ BodyRule::MapRuleInfoInto(nsRuleData* aData)
/* virtual */ void
BodyRule::List(FILE* out, int32_t aIndent) const
{
nsAutoCString indent;
for (int32_t index = aIndent; --index >= 0; ) {
fputs(" ", out);
indent.AppendLiteral(" ");
}
fputs("[body rule] {}\n", out);
fprintf_stderr(out, "%s[body rule] {}\n", indent.get());
}
#endif