summaryrefslogtreecommitdiff
path: root/src/rfkill/rfkill.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-22 13:01:22 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-23 22:44:07 +0900
commit94ad322538645669029de9df8998d3add171cebd (patch)
tree97f52402be67faa5e5a5be352710653a904e986f /src/rfkill/rfkill.c
parent3d0ac9d0eca971ab25adf727537c7c6ba02350bc (diff)
downloadsystemd-94ad322538645669029de9df8998d3add171cebd.tar.gz
rfkill: use log_device_*()
Diffstat (limited to 'src/rfkill/rfkill.c')
-rw-r--r--src/rfkill/rfkill.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c
index 79bc1cbc5d..b7316313c4 100644
--- a/src/rfkill/rfkill.c
+++ b/src/rfkill/rfkill.c
@@ -7,6 +7,7 @@
#include "sd-device.h"
#include "alloc-util.h"
+#include "device-util.h"
#include "escape.h"
#include "fd-util.h"
#include "fileio.h"
@@ -73,9 +74,9 @@ static int find_device(
r = sd_device_get_sysattr_value(device, "name", &name);
if (r < 0)
- return log_debug_errno(r, "Device has no name, ignoring: %m");
+ return log_device_debug_errno(device, r, "Device has no name, ignoring: %m");
- log_debug("Operating on rfkill device '%s'.", name);
+ log_device_debug(device, "Operating on rfkill device '%s'.", name);
*ret = TAKE_PTR(device);
return 0;