Fixed compiler warning for wrong printf placeholder in memstat
authorToru Maesaka <dev@torum.net>
Thu, 12 Feb 2009 05:27:23 +0000 (14:27 +0900)
committerToru Maesaka <dev@torum.net>
Thu, 12 Feb 2009 05:27:23 +0000 (14:27 +0900)
clients/memstat.c

index 68c78e403858d06d8d20ef330d3e187a571cc76c..a04327e64e947de63abe1b951455fda2f4ee15b4 100644 (file)
@@ -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]),