projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9540285
)
tools-common: use gpiod_last_strerror()
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Mon, 9 Jan 2017 11:38:10 +0000
(12:38 +0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Mon, 9 Jan 2017 11:38:10 +0000
(12:38 +0100)
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tools-common.c
patch
|
blob
|
history
diff --git
a/tools-common.c
b/tools-common.c
index 0ad160c5bcc02713a3f83ba017f555d9cdea2db9..01c381f851a3301dc843840d9f5ec8b12af431df 100644
(file)
--- a/
tools-common.c
+++ b/
tools-common.c
@@
-50,7
+50,7
@@
void NORETURN PRINTF(1, 2) die_perror(const char *fmt, ...)
va_start(va, fmt);
fprintf(stderr, "%s: ", progname);
vfprintf(stderr, fmt, va);
- fprintf(stderr, ": %s\n", gpiod_
strerror(gpiod_errno()
));
+ fprintf(stderr, ": %s\n", gpiod_
last_strerror(
));
va_end(va);
exit(EXIT_FAILURE);