1.1 --- a/src/share/vm/runtime/safepoint.hpp Thu May 15 18:23:26 2014 -0400 1.2 +++ b/src/share/vm/runtime/safepoint.hpp Thu May 22 15:52:41 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 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 @@ -174,7 +174,7 @@ 1.11 1.12 // debugging 1.13 static void print_state() PRODUCT_RETURN; 1.14 - static void safepoint_msg(const char* format, ...) PRODUCT_RETURN; 1.15 + static void safepoint_msg(const char* format, ...) ATTRIBUTE_PRINTF(1, 2) PRODUCT_RETURN; 1.16 1.17 static void deferred_initialize_stat(); 1.18 static void print_stat_on_exit(); 1.19 @@ -240,7 +240,7 @@ 1.20 static void create(JavaThread *thread); 1.21 static void destroy(JavaThread *thread); 1.22 1.23 - void safepoint_msg(const char* format, ...) { 1.24 + void safepoint_msg(const char* format, ...) ATTRIBUTE_PRINTF(2, 3) { 1.25 if (ShowSafepointMsgs) { 1.26 va_list ap; 1.27 va_start(ap, format);