From a31bc84b1fc53998400609999218f3112872be02 Mon Sep 17 00:00:00 2001 From: Dmitriy Eshenko Date: Wed, 16 Nov 2022 19:55:34 +0300 Subject: CLI: Fix counters output type --- accel-pppd/cli/show_sessions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'accel-pppd') diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c index 73adc54..b814e82 100644 --- a/accel-pppd/cli/show_sessions.c +++ b/accel-pppd/cli/show_sessions.c @@ -599,7 +599,7 @@ static void print_rx_bytes_raw(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.rx_bytes); + sprintf(buf, "%llu", stats.rx_bytes); } static void print_tx_bytes_raw(struct ap_session *ses, char *buf) @@ -608,7 +608,7 @@ static void print_tx_bytes_raw(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.tx_bytes); + sprintf(buf, "%llu", stats.tx_bytes); } static void print_rx_pkts(struct ap_session *ses, char *buf) @@ -617,7 +617,7 @@ static void print_rx_pkts(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.rx_packets); + sprintf(buf, "%llu", stats.rx_packets); } static void print_tx_pkts(struct ap_session *ses, char *buf) @@ -626,7 +626,7 @@ static void print_tx_pkts(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.tx_packets); + sprintf(buf, "%llu", stats.tx_packets); } static void load_config(void *data) -- cgit v1.2.3