Skip to content

Commit c5e11ca

Browse files
committed
Include runtime/os.hpp for os::errno_name and use SIZE_FORMAT instead of %zu.
1 parent e665618 commit c5e11ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/cpu/aarch64/gc/z/zGlobals_aarch64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "gc/shared/gcLogPrecious.hpp"
2626
#include "gc/z/zGlobals.hpp"
2727
#include "runtime/globals.hpp"
28+
#include "runtime/os.hpp"
2829
#include "utilities/globalDefinitions.hpp"
2930
#include "utilities/powerOfTwo.hpp"
3031

@@ -187,7 +188,7 @@ static size_t probe_valid_max_address_bit() {
187188
munmap(result_addr, page_size);
188189
}
189190
}
190-
log_info_p(gc, init)("Probing address space for the highest valid bit: %zu", max_address_bit);
191+
log_info_p(gc, init)("Probing address space for the highest valid bit: " SIZE_FORMAT, max_address_bit);
191192
if (max_address_bit < MINIMUM_MAX_ADDRESS_BIT) {
192193
return MINIMUM_MAX_ADDRESS_BIT;
193194
}

0 commit comments

Comments
 (0)