From 0d26ba9ea38dec3e1dc65eb3b49ea7d4dd84a562 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Sat, 27 Aug 2022 23:25:18 +0200 Subject: [PATCH] candump: print number of dropped frames as unsigned values Signed-off-by: Marc Kleine-Budde --- candump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/candump.c b/candump.c index 6fe30bb..40904cc 100644 --- a/candump.c +++ b/candump.c @@ -783,11 +783,11 @@ int main(int argc, char **argv) __u32 frames = obj->dropcnt - obj->last_dropcnt; if (silent != SILENT_ON) - printf("DROPCOUNT: dropped %d CAN frame%s on '%s' socket (total drops %d)\n", + printf("DROPCOUNT: dropped %u CAN frame%s on '%s' socket (total drops %u)\n", frames, (frames > 1)?"s":"", devname[idx], obj->dropcnt); if (log) - fprintf(logfile, "DROPCOUNT: dropped %d CAN frame%s on '%s' socket (total drops %d)\n", + fprintf(logfile, "DROPCOUNT: dropped %u CAN frame%s on '%s' socket (total drops %u)\n", frames, (frames > 1)?"s":"", devname[idx], obj->dropcnt); obj->last_dropcnt = obj->dropcnt;