mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 513156 VC7.1 bustage fix r=vlad
This commit is contained in:
parent
4093f253d0
commit
8493cc8937
@ -39,6 +39,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "prmem.h"
|
||||
#include "prprf.h"
|
||||
|
||||
#include "nsIServiceManager.h"
|
||||
|
||||
@ -117,7 +118,7 @@ CanvasUtils::LogMessagef (const char *fmt, ...)
|
||||
|
||||
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
|
||||
if (console) {
|
||||
vsnprintf(buf, 256, fmt, ap);
|
||||
PR_vsnprintf(buf, 256, fmt, ap);
|
||||
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
|
||||
fprintf(stderr, "%s\n", buf);
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
#include "WebGLContext.h"
|
||||
|
||||
#include "prprf.h"
|
||||
|
||||
#include "nsIConsoleService.h"
|
||||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsIPrefBranch.h"
|
||||
@ -170,7 +172,7 @@ WebGLContext::LogMessage(const char *fmt, ...)
|
||||
|
||||
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
|
||||
if (console) {
|
||||
vsnprintf(buf, 256, fmt, ap);
|
||||
PR_vsnprintf(buf, 256, fmt, ap);
|
||||
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
|
||||
fprintf(stderr, "%s\n", buf);
|
||||
}
|
||||
@ -187,7 +189,7 @@ WebGLContext::ErrorMessage(const char *fmt, ...)
|
||||
|
||||
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
|
||||
if (console) {
|
||||
vsnprintf(buf, 256, fmt, ap);
|
||||
PR_vsnprintf(buf, 256, fmt, ap);
|
||||
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
|
||||
fprintf(stderr, "%s\n", buf);
|
||||
}
|
||||
|
@ -38,6 +38,8 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "prprf.h"
|
||||
|
||||
#include "nsGLPbuffer.h"
|
||||
|
||||
#include "nsIConsoleService.h"
|
||||
@ -58,7 +60,7 @@ nsGLPbuffer::LogMessage(const char *fmt, ...)
|
||||
|
||||
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
|
||||
if (console) {
|
||||
vsnprintf(buf, 256, fmt, ap);
|
||||
PR_vsnprintf(buf, 256, fmt, ap);
|
||||
console->LogStringMessage(NS_ConvertUTF8toUTF16(nsDependentCString(buf)).get());
|
||||
fprintf(stderr, "%s\n", buf);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user