diff options
author | João Valverde <j@v6e.pt> | 2021-12-17 20:05:19 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2021-12-19 20:06:13 +0000 |
commit | fe5248717faa1c99a4d0c761fa8da63afffc5d3f (patch) | |
tree | 80dfeee421091a44c88f80b7a65edc0590e4b4e5 /ui/cli/tap-endpoints.c | |
parent | c5a19582e4e18605e8528cd999221444f7ece318 (diff) |
Replace g_snprintf() with snprintf()
Use macros from inttypes.h with format strings.
Diffstat (limited to 'ui/cli/tap-endpoints.c')
-rw-r--r-- | ui/cli/tap-endpoints.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/cli/tap-endpoints.c b/ui/cli/tap-endpoints.c index 690cdb1742..948ca242a1 100644 --- a/ui/cli/tap-endpoints.c +++ b/ui/cli/tap-endpoints.c @@ -71,9 +71,9 @@ endpoints_draw(void *arg) if (display_port) { /* XXX - TODO: make port resolution configurable (through gbl_resolv_flags?) */ port_str = get_conversation_port(NULL, host->port, host->etype, TRUE); - printf("%-20s %5s %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER - "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u %6" - G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u \n", + printf("%-20s %5s %6" PRIu64 " %9" PRIu64 + " %6" PRIu64 " %9" PRIu64 " %6" + PRIu64 " %9" PRIu64 " \n", conversation_str, port_str, host->tx_frames+host->rx_frames, host->tx_bytes+host->rx_bytes, @@ -81,9 +81,9 @@ endpoints_draw(void *arg) host->rx_frames, host->rx_bytes); wmem_free(NULL, port_str); } else { - printf("%-20s %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER - "u %6" G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u %6" - G_GINT64_MODIFIER "u %9" G_GINT64_MODIFIER "u \n", + printf("%-20s %6" PRIu64 " %9" PRIu64 + " %6" PRIu64 " %9" PRIu64 " %6" + PRIu64 " %9" PRIu64 " \n", /* XXX - TODO: make name resolution configurable (through gbl_resolv_flags?) */ conversation_str, host->tx_frames+host->rx_frames, host->tx_bytes+host->rx_bytes, |