RFR [XS] : 8227630: adjust format specifiers in loadlib_aix.cpp

Doerr, Martin martin.doerr at sap.com
Fri Jul 12 11:57:36 UTC 2019


Hi Matthias,

looks good to me.

Best regards,
Martin


> -----Original Message-----
> From: hotspot-dev <hotspot-dev-bounces at openjdk.java.net> On Behalf Of
> Baesken, Matthias
> Sent: Freitag, 12. Juli 2019 12:34
> To: 'hotspot-dev at openjdk.java.net' <hotspot-dev at openjdk.java.net>
> Subject: RFR [XS] : 8227630: adjust format specifiers in loadlib_aix.cpp
> 
> 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