RFR [XS] : 8227630: adjust format specifiers in loadlib_aix.cpp
Baesken, Matthias
matthias.baesken at sap.com
Fri Jul 12 10:34:01 UTC 2019
Hello, please review this very small fix for AIX .
Currently we use %llu printf-format specifiers at 2 places in loadlib_aix.cpp where we output size_t variables .
This leads to warnings with xlc16/xlclang :
/nightly/jdk/src/hotspot/os/aix/loadlib_aix.cpp:210:48: warning: format specifies type 'unsigned long long' but the argument
has type 'size_t' (aka 'unsigned long') [-Wformat]
trcVerbose("loadquery buffer size is %llu.", buflen);
~~~~ ^~~~~~
%zu
We can use correct format specifiers (casting might be another option).
Bug/webrev :
https://bugs.openjdk.java.net/browse/JDK-8227630
http://cr.openjdk.java.net/~mbaesken/webrevs/8227630.0/
Thanks, Matthias
More information about the hotspot-dev
mailing list