1.1 --- a/src/share/vm/services/diagnosticArgument.cpp Wed Jan 16 16:30:04 2013 +0100 1.2 +++ b/src/share/vm/services/diagnosticArgument.cpp Thu Jan 17 10:25:16 2013 -0500 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2011, 2013 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 @@ -86,7 +86,7 @@ 1.11 1.12 template <> void DCmdArgument<jlong>::parse_value(const char* str, 1.13 size_t len, TRAPS) { 1.14 - if (str == NULL || sscanf(str, INT64_FORMAT, &_value) != 1) { 1.15 + if (str == NULL || sscanf(str, JLONG_FORMAT, &_value) != 1) { 1.16 THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), 1.17 "Integer parsing error in diagnostic command arguments\n"); 1.18 } 1.19 @@ -171,7 +171,7 @@ 1.20 "Integer parsing error nanotime value: syntax error"); 1.21 } 1.22 1.23 - int argc = sscanf(str, INT64_FORMAT , &_value._time); 1.24 + int argc = sscanf(str, JLONG_FORMAT, &_value._time); 1.25 if (argc != 1) { 1.26 THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), 1.27 "Integer parsing error nanotime value: syntax error");