mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Backed out changeset 818fc5631d72 (bug 553032)
This commit is contained in:
parent
9e31a95f74
commit
a538fb80cc
@ -41,7 +41,9 @@ static char gLastError[2000];
|
|||||||
|
|
||||||
#if defined(__APPLE__) || defined(__linux__) || defined(MOZ_CALLGRIND)
|
#if defined(__APPLE__) || defined(__linux__) || defined(MOZ_CALLGRIND)
|
||||||
static void
|
static void
|
||||||
MOZ_FORMAT_PRINTF(1, 2)
|
#ifdef __GNUC__
|
||||||
|
__attribute__((format(printf,1,2)))
|
||||||
|
#endif
|
||||||
UnsafeError(const char* format, ...)
|
UnsafeError(const char* format, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
@ -186,7 +186,10 @@ namespace jit {
|
|||||||
printer = sp;
|
printer = sp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void spew(const char* fmt, ...) MOZ_FORMAT_PRINTF(2, 3)
|
void spew(const char* fmt, ...)
|
||||||
|
#ifdef __GNUC__
|
||||||
|
__attribute__ ((format (printf, 2, 3)))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if (MOZ_UNLIKELY(printer || JitSpewEnabled(JitSpew_Codegen))) {
|
if (MOZ_UNLIKELY(printer || JitSpewEnabled(JitSpew_Codegen))) {
|
||||||
va_list va;
|
va_list va;
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "mozilla/Assertions.h"
|
#include "mozilla/Assertions.h"
|
||||||
#include "mozilla/Attributes.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
@ -27,7 +26,9 @@ int VsprintfLiteral(char (&buffer)[N], const char* format, va_list args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <size_t N>
|
template <size_t N>
|
||||||
MOZ_FORMAT_PRINTF(2, 3)
|
#if defined(__GNUC__)
|
||||||
|
__attribute__((format(printf, 2, 3)))
|
||||||
|
#endif
|
||||||
int SprintfLiteral(char (&buffer)[N], const char* format, ...)
|
int SprintfLiteral(char (&buffer)[N], const char* format, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
Loading…
Reference in New Issue
Block a user