1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #5812 from makomi/periph_uart

tests/periph_uart: fix invalidPrintfArgType_sint (cppcheck)
This commit is contained in:
Martine Lenders 2016-09-05 13:08:40 +02:00 committed by GitHub
commit 8754a3da4d

View File

@ -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;