From f2fe52b6004c373c5bf8f0cb73eaff1bab3fa22e Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Sat, 21 May 2016 16:38:13 +0200 Subject: [PATCH] Fixed printf directives for tx/rx counters In 9a66de0affda, types of tx/rx counters were changed from "long" to "unsigned long", but their printf directives remained "%ld". Change them to "%lu" to match the actual types. --- src/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty.c b/src/tty.c index 0149e7a..fe4e762 100644 --- a/src/tty.c +++ b/src/tty.c @@ -102,7 +102,7 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c case KEY_S: /* Show tx/rx statistics upon ctrl-t s sequence */ tio_printf("Statistics:"); - tio_printf(" Sent %ld bytes, received %ld bytes", tx_total, rx_total); + tio_printf(" Sent %lu bytes, received %lu bytes", tx_total, rx_total); *forward = false; break; default: