Bug 646259: Some trivial formatting fixes to deadlock detector output. r=bsmedberg
authorChris Jones <jones.chris.g@gmail.com>
Thu, 31 Mar 2011 14:51:19 -0500
changeset 64528 36242c02cfc43def17fe14a3bdb999de84356d3b
parent 64527 4beec31b9ea9ca3006ba1ed3daa46c7daca4200a
child 64529 be4ecb32b875a8731f5e9e51bfe35f1f9038ad5d
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs646259
milestone2.2a1pre
Bug 646259: Some trivial formatting fixes to deadlock detector output. r=bsmedberg
xpcom/glue/BlockingResourceBase.cpp
--- a/xpcom/glue/BlockingResourceBase.cpp
+++ b/xpcom/glue/BlockingResourceBase.cpp
@@ -79,17 +79,17 @@ BlockingResourceBase::DeadlockDetectorEn
 
     fprintf(stderr, "--- %s : %s",
             kResourceTypeName[mType], mName);
     out += BlockingResourceBase::kResourceTypeName[mType];
     out += " : ";
     out += mName;
 
     if (maybeCurrentlyAcquired) {
-        fputs(" (currently acquired)", stderr);
+        fputs(" (currently acquired)\n", stderr);
         out += " (currently acquired)\n";
     }
 
     fputs(" calling context\n", stderr);
     printAcquisition.Print(stderr);
 
     return maybeCurrentlyAcquired;
 }
@@ -232,17 +232,17 @@ BlockingResourceBase::PrintCycle(const D
     const DDT::ResourceAcquisition res = aCycle->ElementAt(0);
     maybeImminent &= res.mResource->Print(res, out);
 
     DDT::ResourceAcquisitionArray::index_type i;
     DDT::ResourceAcquisitionArray::size_type len = aCycle->Length();
     const DDT::ResourceAcquisition* it = 1 + aCycle->Elements();
     for (i = 1; i < len - 1; ++i, ++it) {
         fputs("\n--- Next dependency:\n", stderr);
-        out += "Next dependency:\n";
+        out += "\nNext dependency:\n";
 
         maybeImminent &= it->mResource->Print(*it, out);
     }
 
     fputs("\n=== Cycle completed at\n", stderr);
     out += "Cycle completed at\n";
     it->mResource->Print(*it, out, true);