11/*
2- * Copyright (c) 2020, 2021 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2020, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
@@ -75,7 +75,7 @@ void GCInitLogger::print_large_pages() {
7575void GCInitLogger::print_numa () {
7676 if (UseNUMA) {
7777 log_info_p (gc, init)(" NUMA Support: Enabled" );
78- log_info_p (gc, init)(" NUMA Nodes: " SIZE_FORMAT , os::numa_get_groups_num ());
78+ log_info_p (gc, init)(" NUMA Nodes: %zu " , os::numa_get_groups_num ());
7979 } else {
8080 log_info_p (gc, init)(" NUMA Support: Disabled" );
8181 }
@@ -91,11 +91,11 @@ void GCInitLogger::print_compressed_oops() {
9191}
9292
9393void GCInitLogger::print_heap () {
94- log_info_p (gc, init)(" Heap Min Capacity: " SIZE_FORMAT " %s" ,
94+ log_info_p (gc, init)(" Heap Min Capacity: %zu %s" ,
9595 byte_size_in_exact_unit (MinHeapSize), exact_unit_for_byte_size (MinHeapSize));
96- log_info_p (gc, init)(" Heap Initial Capacity: " SIZE_FORMAT " %s" ,
96+ log_info_p (gc, init)(" Heap Initial Capacity: %zu %s" ,
9797 byte_size_in_exact_unit (InitialHeapSize), exact_unit_for_byte_size (InitialHeapSize));
98- log_info_p (gc, init)(" Heap Max Capacity: " SIZE_FORMAT " %s" ,
98+ log_info_p (gc, init)(" Heap Max Capacity: %zu %s" ,
9999 byte_size_in_exact_unit (MaxHeapSize), exact_unit_for_byte_size (MaxHeapSize));
100100
101101 log_info_p (gc, init)(" Pre-touch: %s" , AlwaysPreTouch ? " Enabled" : " Disabled" );
0 commit comments