Skip to content

Commit e59ff7c

Browse files
committed
Fixed print type
1 parent 1852710 commit e59ff7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/os/linux/os_linux.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,13 @@ physical_memory_size_type os::physical_memory() {
433433
if (is_containerized()) {
434434
physical_memory_size_type mem_limit;
435435
if (container_memory_limit(mem_limit)) {
436-
log_trace(os)("total container memory: %zu", mem_limit);
436+
log_trace(os)("total container memory: " PHYS_MEM_TYPE_FORMAT, mem_limit);
437437
return mem_limit;
438438
}
439439
}
440440

441441
physical_memory_size_type phys_mem = machine_physical_memory();
442-
log_trace(os)("total system memory: %zu", phys_mem);
442+
log_trace(os)("total system memory: " PHYS_MEM_TYPE_FORMAT, phys_mem);
443443
return phys_mem;
444444
}
445445

0 commit comments

Comments
 (0)