tools: print the returned negative errno on failure

errno is at some other random value
This commit is contained in:
Peter Hutterer 2022-04-07 13:42:03 +10:00
parent f35be22d2c
commit 21985060b9

View file

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