Index: dm/DMReporter.cpp |
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp |
index 7a0c20edd39762a25787c538a835cdc8bbbc78cb..3d9dae586247c48f49397a8b86fb38183a830d18 100644 |
--- a/dm/DMReporter.cpp |
+++ b/dm/DMReporter.cpp |
@@ -3,7 +3,13 @@ |
namespace DM { |
void Reporter::updateStatusLine() const { |
- SkDebugf("\r\033[K%d / %d, %d failed", this->finished(), this->started(), this->failed()); |
+ SkString status; |
+ status.printf("\r\033[K%d / %d", this->finished(), this->started()); |
+ const int failed = this->failed(); |
+ if (failed > 0) { |
+ status.appendf(", %d failed", failed); |
+ } |
+ SkDebugf(status.c_str()); |
} |
int32_t Reporter::failed() const { |