module/battery: debug log when updating due to udev notification

This commit is contained in:
Daniel Eklöf 2023-07-09 11:17:14 +02:00
parent a342e036ad
commit 6220a07aaf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -501,7 +501,8 @@ run(struct module *mod)
if (!udev_for_us) {
LOG_DBG("udev notification not for us (%s != %s)",
m->battery, sysname != sysname ? sysname : "NULL");
}
} else
LOG_DBG("triggering update due to udev notification");
udev_device_unref(dev);
}