summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2022-11-16 19:55:34 +0300
committerGitHub <noreply@github.com>2022-11-16 19:55:34 +0300
commita31bc84b1fc53998400609999218f3112872be02 (patch)
tree42d68f133d7c21eb13580b8415820890e026462f /accel-pppd
parent474de35992ca918df0fd574d0cf6a403c67ba68f (diff)
downloadaccel-ppp-a31bc84b1fc53998400609999218f3112872be02.tar.gz
accel-ppp-a31bc84b1fc53998400609999218f3112872be02.zip
CLI: Fix counters output type
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/cli/show_sessions.c8
1 files changed, 4 insertions, 4 deletions
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)