Index: tests/SortTest.cpp |
diff --git a/tests/SortTest.cpp b/tests/SortTest.cpp |
index ceca4097c52f08f35fab2b8d163cdfffff6e44bd..16c7891ecf01b32da09d6f167e1d1c765e79c805 100644 |
--- a/tests/SortTest.cpp |
+++ b/tests/SortTest.cpp |
@@ -26,9 +26,9 @@ static void check_sort(skiatest::Reporter* reporter, const char label[], |
const int array[], const int reference[], int n) { |
for (int j = 0; j < n; ++j) { |
if (array[j] != reference[j]) { |
- SkString str; |
- str.printf("%sSort [%d] failed %d %d", label, n, array[j], reference[j]); |
- reporter->reportFailed(str); |
+ REPORTF(reporter, |
+ ("%sSort [%d] failed %d %d", |
+ label, n, array[j], reference[j])); |
} |
} |
} |