chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update TODO
[elogind.git]
/
src
/
rfkill
/
rfkill.c
diff --git
a/src/rfkill/rfkill.c
b/src/rfkill/rfkill.c
index c75d6a60d891f980ceaeb3cbfe621bc51b27e6e3..68729b0c04e5bf08aa220ffaa7f08273fb1a0a41 100644
(file)
--- a/
src/rfkill/rfkill.c
+++ b/
src/rfkill/rfkill.c
@@
-59,7
+59,7
@@
int main(int argc, char *argv[]) {
device = udev_device_new_from_subsystem_sysname(udev, "rfkill", argv[2]);
if (!device) {
if (errno != 0)
device = udev_device_new_from_subsystem_sysname(udev, "rfkill", argv[2]);
if (!device) {
if (errno != 0)
- log_error
(
"Failed to get rfkill device '%s': %m", argv[2]);
+ log_error
_errno(errno,
"Failed to get rfkill device '%s': %m", argv[2]);
else
log_oom();
else
log_oom();