From: Toru Maesaka Date: Thu, 12 Feb 2009 05:27:23 +0000 (+0900) Subject: Fixed compiler warning for wrong printf placeholder in memstat X-Git-Tag: 0.27~33 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f351ea037148e992ef5a6ea66d355dcab47e570a;p=awesomized%2Flibmemcached Fixed compiler warning for wrong printf placeholder in memstat --- diff --git a/clients/memstat.c b/clients/memstat.c index 68c78e40..a04327e6 100644 --- a/clients/memstat.c +++ b/clients/memstat.c @@ -154,14 +154,14 @@ static void print_analysis_report(memcached_st *memc, } printf("\n"); - printf("\tNode with most memory consumption : %s:%u (%u bytes)\n", + printf("\tNode with most memory consumption : %s:%u (%llu bytes)\n", memcached_server_name(memc, server_list[report->most_consumed_server]), memcached_server_port(memc, server_list[report->most_consumed_server]), - report->most_used_bytes); - printf("\tNode with least free space : %s:%u (%u bytes remaining)\n", + (unsigned long long)report->most_used_bytes); + printf("\tNode with least free space : %s:%u (%llu bytes remaining)\n", memcached_server_name(memc, server_list[report->least_free_server]), memcached_server_port(memc, server_list[report->least_free_server]), - report->least_remaining_bytes); + (unsigned long long)report->least_remaining_bytes); printf("\tNode with longest uptime : %s:%u (%us)\n", memcached_server_name(memc, server_list[report->oldest_server]), memcached_server_port(memc, server_list[report->oldest_server]),