From 6ea7a8f6ae3f1a513f94908814c3c67dc0f0e9f2 Mon Sep 17 00:00:00 2001 From: Matthias Kolja Miehl Date: Sun, 21 Aug 2016 16:58:25 +0200 Subject: [PATCH] tests/periph_uart: fix invalidPrintfArgType_sint Since the argument type is 'unsigned int', the printf format string has to be '%u' instead of '%i'. --- tests/periph_uart/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/periph_uart/main.c b/tests/periph_uart/main.c index 940e745643..8aaa58f7c1 100644 --- a/tests/periph_uart/main.c +++ b/tests/periph_uart/main.c @@ -53,11 +53,11 @@ static int parse_dev(char *arg) { unsigned dev = (unsigned)atoi(arg); if (dev >= UART_NUMOF) { - printf("Error: Invalid UART_DEV device specified (%i).\n", dev); + printf("Error: Invalid UART_DEV device specified (%u).\n", dev); return -1; } else if (UART_DEV(dev) == UART_STDIO_DEV) { - printf("Error: The selected UART_DEV(%i) is used for the shell!\n", dev); + printf("Error: The selected UART_DEV(%u) is used for the shell!\n", dev); return -2; } return dev;