summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-16 09:34:31 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-16 09:37:28 +0200
commitb3cfe5900108df81fbf547b297d51ac8c7359a9b (patch)
tree4f8cbee62a4968eebf91f211bf698247268faadb /src/udev
parentMerge pull request #27652 from keszybz/readme-more (diff)
downloadsystemd-b3cfe5900108df81fbf547b297d51ac8c7359a9b.tar.xz
systemd-b3cfe5900108df81fbf547b297d51ac8c7359a9b.zip
udev: use SYNTHETIC_ERRNO() at one more place
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevadm-test-builtin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/udev/udevadm-test-builtin.c b/src/udev/udevadm-test-builtin.c
index 81b633611e..5570eec789 100644
--- a/src/udev/udevadm-test-builtin.c
+++ b/src/udev/udevadm-test-builtin.c
@@ -87,8 +87,7 @@ int builtin_main(int argc, char *argv[], void *userdata) {
cmd = udev_builtin_lookup(arg_command);
if (cmd < 0) {
- log_error("Unknown command '%s'", arg_command);
- r = -EINVAL;
+ r = log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unknown command '%s'", arg_command);
goto finish;
}