Skip to content
Snippets Groups Projects
Commit 6ea7a8f6 authored by Matthias Kolja Miehl's avatar Matthias Kolja Miehl
Browse files

tests/periph_uart: fix invalidPrintfArgType_sint

Since the argument type is 'unsigned int', the printf
format string has to be '%u' instead of '%i'.
parent 39ecc12d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment