1.1 --- a/src/share/vm/utilities/vmError.cpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/utilities/vmError.cpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -42,6 +42,8 @@ 1.11 #include "utilities/top.hpp" 1.12 #include "utilities/vmError.hpp" 1.13 1.14 +PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 1.15 + 1.16 // List of environment variables that should be reported in error log file. 1.17 const char *env_list[] = { 1.18 // All platforms 1.19 @@ -358,17 +360,17 @@ 1.20 st->print((_id == (int)OOM_MALLOC_ERROR) ? "(malloc) failed to allocate " : 1.21 "(mmap) failed to map "); 1.22 jio_snprintf(buf, sizeof(buf), SIZE_FORMAT, _size); 1.23 - st->print(buf); 1.24 + st->print("%s", buf); 1.25 st->print(" bytes"); 1.26 if (_message != NULL) { 1.27 st->print(" for "); 1.28 - st->print(_message); 1.29 + st->print("%s", _message); 1.30 } 1.31 st->cr(); 1.32 } else { 1.33 if (_message != NULL) 1.34 st->print("# "); 1.35 - st->print_cr(_message); 1.36 + st->print_cr("%s", _message); 1.37 } 1.38 // In error file give some solutions 1.39 if (_verbose) { 1.40 @@ -485,7 +487,7 @@ 1.41 } else { 1.42 st->print("Failed to write core dump. %s", coredump_message); 1.43 } 1.44 - st->print_cr(""); 1.45 + st->cr(); 1.46 st->print_cr("#"); 1.47 1.48 STEP(65, "(printing bug submit message)")