RFR: 8329549: Remove FORMAT64_MODIFIER [v2]
David Holmes
dholmes at openjdk.org
Tue Jan 7 13:08:40 UTC 2025
On Tue, 7 Jan 2025 12:31:44 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> The `_X` infix is meant to indicate `0x`. I think `UINT64_FORMAT_0` is what you are looking for.
>
> I thought X was hexadecimal. That's a lot better. Thanks.
// Guide to the suffixes used in the format specifiers for integers:
// - print the decimal value: 745565
// _X - print as hexadecimal, without leading 0s: 0x12345
// _X_0 - print as hexadecimal, with leading 0s: 0x00012345
It wasn't obvious to me that the _X meant hexadecimal-with-0x-prefix versus simply hexadecimal. But I have no issue with always doing 0x :)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22918#discussion_r1905429372
More information about the hotspot-dev
mailing list