diff options
| author | Denys Fedoryshchenko <denys.f@collabora.com> | 2025-11-26 16:55:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-26 16:55:09 +0200 |
| commit | d013d3ff2150ca425ff13ce69d0eab394153803a (patch) | |
| tree | b45fbd327ff6ffd7448aa32711195c9e2ec4964d /accel-pppd/cli/std_cmd.c | |
| parent | 224c734b8ab64694319c81625e022af623b51ba0 (diff) | |
| parent | 7f08560e6d79552107ff34628e02e6f8dcf0455f (diff) | |
| download | accel-ppp-d013d3ff2150ca425ff13ce69d0eab394153803a.tar.gz accel-ppp-d013d3ff2150ca425ff13ce69d0eab394153803a.zip | |
Merge pull request #265 from nuclearcat/fix-mempool
mempool: Fix 32-bit stats
Diffstat (limited to 'accel-pppd/cli/std_cmd.c')
| -rw-r--r-- | accel-pppd/cli/std_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index ace48391..c37777b1 100644 --- a/accel-pppd/cli/std_cmd.c +++ b/accel-pppd/cli/std_cmd.c @@ -5,6 +5,7 @@ #include <signal.h> #include <malloc.h> #include <arpa/inet.h> +#include <inttypes.h> #include "triton.h" #include "events.h" @@ -57,8 +58,8 @@ static int show_stat_exec(const char *cmd, char * const *fields, int fields_cnt, cli_sendv(client, "mem(rss/virt): %lu/%lu kB\r\n", vmrss * page_size_kb, vmsize * page_size_kb); #endif cli_send(client, "core:\r\n"); - cli_sendv(client, " mempool_allocated: %u\r\n", triton_stat.mempool_allocated); - cli_sendv(client, " mempool_available: %u\r\n", triton_stat.mempool_available); + cli_sendv(client, " mempool_allocated: %" PRIu64 "\r\n", triton_stat.mempool_allocated); + cli_sendv(client, " mempool_available: %" PRIu64 "\r\n", triton_stat.mempool_available); cli_sendv(client, " thread_count: %u\r\n", triton_stat.thread_count); cli_sendv(client, " thread_active: %u\r\n", triton_stat.thread_active); cli_sendv(client, " context_count: %u\r\n", triton_stat.context_count); |
