mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Convert errors to warnings
This commit is contained in:
parent
b0590fb021
commit
be2c682da6
1 changed files with 3 additions and 3 deletions
|
|
@ -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:");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue