< prev index next >

src/share/vm/utilities/debug.cpp

Print this page

        

*** 79,92 **** #endif // PRODUCT PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC FormatBufferResource::FormatBufferResource(const char * format, ...) ! : FormatBufferBase((char*)resource_allocate_bytes(BUFSZ)) { va_list argp; va_start(argp, format); ! jio_vsnprintf(_buf, BUFSZ, format, argp); va_end(argp); } ATTRIBUTE_PRINTF(1, 2) void warning(const char* format, ...) { --- 79,92 ---- #endif // PRODUCT PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC FormatBufferResource::FormatBufferResource(const char * format, ...) ! : FormatBufferBase((char*)resource_allocate_bytes(FormatBufferBase::BufferSize)) { va_list argp; va_start(argp, format); ! jio_vsnprintf(_buf, FormatBufferBase::BufferSize, format, argp); va_end(argp); } ATTRIBUTE_PRINTF(1, 2) void warning(const char* format, ...) {
< prev index next >