Convert errors to warnings

This commit is contained in:
Martin Lund 2022-06-02 20:51:23 +02:00
parent b0590fb021
commit be2c682da6

View file

@ -82,7 +82,7 @@ static void toggle_line(const char *line_name, int mask)
if (ioctl(fd, TIOCMGET, &state) < 0)
{
error_printf("Could not get line state: %s", strerror(errno));
warning_printf("Could not get line state: %s", strerror(errno));
}
else
{
@ -97,7 +97,7 @@ static void toggle_line(const char *line_name, int mask)
tio_printf("set %s to HIGH", line_name);
}
if (ioctl(fd, TIOCMSET, &state) < 0)
error_printf("Could not set line state: %s", strerror(errno));
warning_printf("Could not set line state: %s", strerror(errno));
}
}
@ -143,7 +143,7 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
case KEY_SHIFT_L:
if (ioctl(fd, TIOCMGET, &state) < 0)
{
error_printf("Could not get line state: %s", strerror(errno));
warning_printf("Could not get line state: %s", strerror(errno));
break;
}
tio_printf("Line states:");