From 6437b6696cd1e03de3f4d4c62db969ab7bb8151c Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 4 Jan 2024 00:49:36 +0100 Subject: Corrected pprintf format specifiers --- FICS/comproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FICS/comproc.c') diff --git a/FICS/comproc.c b/FICS/comproc.c index 539a60d..ad8f42b 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -652,13 +652,13 @@ com_uptime(int p, param_list param) pprintf(p, "\nAllocs: %u Frees: %u Allocs In Use: %u\n", malloc_count, free_count, (malloc_count - free_count)); if (parray[p].adminLevel >= ADMIN_ADMIN) { - pprintf(p, "\nplayer size:%d, game size:%d, con size:%d, " + pprintf(p, "\nplayer size:%zu, game size:%zu, con size:%d, " "g_num:%d\n", sizeof(player), sizeof(game), net_consize(), g_num); getrusage(RUSAGE_SELF, &ru); - pprintf(p, "pagesize = %d, maxrss = %d, total = %d\n", + pprintf(p, "pagesize = %d, maxrss = %ld, total = %ld\n", getpagesize(), ru.ru_maxrss, (getpagesize() * ru.ru_maxrss)); -- cgit v1.2.3