mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-30 07:40:40 +02:00
tools: print the returned negative errno on failure
errno is at some other random value
This commit is contained in:
parent
f35be22d2c
commit
21985060b9
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
if (rc != 0) {
|
||||
fprintf(stderr, "init failed: %s\n", strerror(errno));
|
||||
fprintf(stderr, "init failed: %s\n", strerror(-rc));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue