Bug 643217 - Replace "ASSERTION FAILED" message with "Assertion failure" in assembler. r=njn
authorGary Kwong <gary@rumblingedge.com>
Thu, 31 Mar 2011 08:44:57 +0800
changeset 64557 be3045fcd6fd1b8d003f75928bb3e405e65a2e4b
parent 64556 ba8cc57e0848818df689149c4eed99c4c0d7b5e9
child 64558 11d72b25348dd0c9eb03caad786c2a0663e46633
push idunknown
push userunknown
push dateunknown
reviewersnjn
bugs643217
milestone2.2a1pre
Bug 643217 - Replace "ASSERTION FAILED" message with "Assertion failure" in assembler. r=njn
js/src/assembler/wtf/Assertions.cpp
--- a/js/src/assembler/wtf/Assertions.cpp
+++ b/js/src/assembler/wtf/Assertions.cpp
@@ -69,53 +69,53 @@ static void printCallSite(const char* fi
 #else
     printf_stderr_common("(%s:%d %s)\n", file, line, function);
 #endif
 }
 
 void WTFReportAssertionFailure(const char* file, int line, const char* function, const char* assertion)
 {
     if (assertion)
-        printf_stderr_common("ASSERTION FAILED: %s\n", assertion);
+        printf_stderr_common("Assertion failure: %s\n", assertion);
     else
-        printf_stderr_common("SHOULD NEVER BE REACHED\n");
+        printf_stderr_common("Should never be reached\n");
     printCallSite(file, line, function);
 }
 
 void WTFReportAssertionFailureWithMessage(const char* file, int line, const char* function, const char* assertion, const char* format, ...)
 {
-    printf_stderr_common("ASSERTION FAILED: ");
+    printf_stderr_common("Assertion failure: ");
     va_list args;
     va_start(args, format);
     vprintf_stderr_common(format, args);
     va_end(args);
     printf_stderr_common("\n%s\n", assertion);
     printCallSite(file, line, function);
 }
 
 void WTFReportArgumentAssertionFailure(const char* file, int line, const char* function, const char* argName, const char* assertion)
 {
-    printf_stderr_common("ARGUMENT BAD: %s, %s\n", argName, assertion);
+    printf_stderr_common("Argument bad: %s, %s\n", argName, assertion);
     printCallSite(file, line, function);
 }
 
 void WTFReportFatalError(const char* file, int line, const char* function, const char* format, ...)
 {
-    printf_stderr_common("FATAL ERROR: ");
+    printf_stderr_common("Fatal error: ");
     va_list args;
     va_start(args, format);
     vprintf_stderr_common(format, args);
     va_end(args);
     printf_stderr_common("\n");
     printCallSite(file, line, function);
 }
 
 void WTFReportError(const char* file, int line, const char* function, const char* format, ...)
 {
-    printf_stderr_common("ERROR: ");
+    printf_stderr_common("Error: ");
     va_list args;
     va_start(args, format);
     vprintf_stderr_common(format, args);
     va_end(args);
     printf_stderr_common("\n");
     printCallSite(file, line, function);
 }