mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Unify error message formating
This commit is contained in:
parent
bf749aead4
commit
0a892006ea
2 changed files with 8 additions and 8 deletions
|
|
@ -135,7 +135,7 @@ static void toggle_line(const char *line_name, int mask)
|
|||
|
||||
if (ioctl(fd, TIOCMGET, &state) < 0)
|
||||
{
|
||||
warning_printf("Could not get line state: %s", strerror(errno));
|
||||
warning_printf("Could not get line state (%s)", strerror(errno));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -150,7 +150,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)
|
||||
warning_printf("Could not set line state: %s", strerror(errno));
|
||||
warning_printf("Could not set line state (%s)", strerror(errno));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -196,7 +196,7 @@ void handle_command_sequence(char input_char, char previous_char, char *output_c
|
|||
case KEY_SHIFT_L:
|
||||
if (ioctl(fd, TIOCMGET, &state) < 0)
|
||||
{
|
||||
warning_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