]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/device: Log if we fail to open a device
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 7 May 2022 13:18:32 +0000 (15:18 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 8 May 2022 11:25:42 +0000 (13:25 +0200)
commite9222bfcfa1665a777f280ef4deff98ec533ee30
tree20c9d86204c8738d78970e5453178b8c4bbe536e
parent6cc4da5eb5346b99a66675d81d7251b6bb631ac4
core/device: Log if we fail to open a device

We also shorten the logic by getting rid of the validate_node()
function. An extra check is added to verify we're dealing with
a device before calling sd_device_new_from_devname() since that
will return -EINVAL if anything other than a device is passed.
src/core/device.c