From 94ad322538645669029de9df8998d3add171cebd Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 22 Oct 2018 13:01:22 +0900 Subject: [PATCH] rfkill: use log_device_*() --- src/rfkill/rfkill.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c index 79bc1cbc5df..b7316313c49 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;