Initialize a static to be nice, and printf() errors if the console
service is not available. Not part of the build. git-svn-id: svn://10.0.0.236/trunk@141221 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -42,6 +42,8 @@ void LogMessage(const char *prefix, const char *pszMessageText)
|
||||
NS_ABORT_IF_FALSE(consoleService, "Where is the console service?");
|
||||
if (consoleService)
|
||||
consoleService->LogStringMessage(NS_ConvertASCIItoUCS2(pszMessageText).get());
|
||||
else
|
||||
printf("%s\n", pszMessageText);
|
||||
}
|
||||
|
||||
void LogMessage(const char *prefix, nsACString &text)
|
||||
|
||||
Reference in New Issue
Block a user