mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
test: fix format string warnings
This commit is contained in:
parent
8e59042310
commit
8ce8bfaa40
@ -26,7 +26,7 @@ TEST_IMPL(get_memory) {
|
||||
uint64_t free_mem = uv_get_free_memory();
|
||||
uint64_t total_mem = uv_get_total_memory();
|
||||
|
||||
printf("free_mem=%zu, total_mem=%zu\n", free_mem, total_mem);
|
||||
printf("free_mem=%zu, total_mem=%zu\n", (size_t)free_mem, (size_t)total_mem);
|
||||
|
||||
ASSERT(free_mem > 0);
|
||||
ASSERT(total_mem > 0);
|
||||
|
@ -53,11 +53,11 @@ TEST_IMPL(platform_output) {
|
||||
for (i = 0; i < count; i++) {
|
||||
fprintf(stderr, " model: %s\n", cpus[i].model);
|
||||
fprintf(stderr, " speed: %d\n", cpus[i].speed);
|
||||
fprintf(stderr, " times.sys: %zu\n", cpus[i].cpu_times.sys);
|
||||
fprintf(stderr, " times.user: %zu\n", cpus[i].cpu_times.user);
|
||||
fprintf(stderr, " times.idle: %zu\n", cpus[i].cpu_times.idle);
|
||||
fprintf(stderr, " times.irq: %zu\n", cpus[i].cpu_times.irq);
|
||||
fprintf(stderr, " times.nice: %zu\n", cpus[i].cpu_times.nice);
|
||||
fprintf(stderr, " times.sys: %zu\n", (size_t)cpus[i].cpu_times.sys);
|
||||
fprintf(stderr, " times.user: %zu\n", (size_t)cpus[i].cpu_times.user);
|
||||
fprintf(stderr, " times.idle: %zu\n", (size_t)cpus[i].cpu_times.idle);
|
||||
fprintf(stderr, " times.irq: %zu\n", (size_t)cpus[i].cpu_times.irq);
|
||||
fprintf(stderr, " times.nice: %zu\n", (size_t)cpus[i].cpu_times.nice);
|
||||
}
|
||||
uv_free_cpu_info(cpus, count);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user