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:
mhammond%skippinet.com.au
2003-04-16 01:26:51 +00:00
parent 108097f539
commit 9119151653
2 changed files with 3 additions and 1 deletions

View File

@@ -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)