RFR : 8227869: fix wrong format specifiers in os_aix.cpp
David Holmes
david.holmes at oracle.com
Thu Jul 18 07:08:17 UTC 2019
Hi Matthias,
On 18/07/2019 5:00 pm, Baesken, Matthias wrote:
> Thanks ! May I get a second review please ?
@@ -1888,12 +1887,12 @@
if (!contains_range(p, s)) {
trcVerbose("[" PTR_FORMAT " - " PTR_FORMAT "] is not a sub "
"range of [" PTR_FORMAT " - " PTR_FORMAT "].",
- p, p + s, addr, addr + size);
+ p2i(p), p2i(p + s), p2i(addr), p2i(addr + size));
pointers should be used with PTR_FORMAT. p2i(p) should be used with
INTPTR_FORMAT. So the above looks like it was already correct and now is
not correct. Using p2i with UINTX_FORMAT also looks dubious to me.
Cheers,
David
-----
> Best regards, Matthias
>
>
>
>> -----Original Message-----
>> From: Langer, Christoph
>> Sent: Mittwoch, 17. Juli 2019 18:45
>> To: Baesken, Matthias <matthias.baesken at sap.com>; 'hotspot-
>> dev at openjdk.java.net' <hotspot-dev at openjdk.java.net>; 'ppc-aix-port-
>> dev at openjdk.java.net' <ppc-aix-port-dev at openjdk.java.net>
>> Subject: RE: RFR : 8227869: fix wrong format specifiers in os_aix.cpp
>>
>> Hi Matthias,
>>
>> thanks for this tedious cleanup. Looks good to me.
>>
>> Best regards
>> Christoph
>>
>>> -----Original Message-----
>>> From: hotspot-dev <hotspot-dev-bounces at openjdk.java.net> On Behalf
>> Of
>>> Baesken, Matthias
>>> Sent: Mittwoch, 17. Juli 2019 17:07
>>> To: 'hotspot-dev at openjdk.java.net' <hotspot-dev at openjdk.java.net>;
>>> 'ppc-aix-port-dev at openjdk.java.net' <ppc-aix-port-
>> dev at openjdk.java.net>
>>> Subject: RFR : 8227869: fix wrong format specifiers in os_aix.cpp
>>>
>>> Hello, there are a couple of non matching format specifiers in os_aix.cpp .
>>> I adjust them with my change .
>>>
>>> Please review !
>>>
>>> Bug/webrev :
>>>
>>> https://bugs.openjdk.java.net/browse/JDK-8227869
>>>
>>> http://cr.openjdk.java.net/~mbaesken/webrevs/8227869.0/
>>>
>>> Thanks, Matthias
More information about the ppc-aix-port-dev
mailing list