From 1269d736906a00bc7bb113879285a08caf068671 Mon Sep 17 00:00:00 2001 From: Raphael Geissert Date: Tue, 5 Apr 2016 20:09:12 +0200 Subject: [PATCH] Fix another string format where %d is used but an unsigned int is passed --- mode_s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode_s.c b/mode_s.c index d9e8545..7563a31 100644 --- a/mode_s.c +++ b/mode_s.c @@ -1141,7 +1141,7 @@ void displayModesMessage(struct modesMessage *mm) { if (mm->timestampMsg == MAGIC_MLAT_TIMESTAMP) printf("This is a synthetic MLAT message.\n"); else - printf("Time: %.2fus (phase: %d)\n", mm->timestampMsg / 12.0, (unsigned int) (360 * (mm->timestampMsg % 6) / 6)); + printf("Time: %.2fus (phase: %u)\n", mm->timestampMsg / 12.0, (unsigned int) (360 * (mm->timestampMsg % 6) / 6)); } if (mm->msgtype == 0) { // DF 0