diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-01-13 09:50:47 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-01-13 09:50:47 +0100 |
commit | a1193286085ba0b6962df4e4a5fed0a3dc553772 (patch) | |
tree | 7f663221730aa770d452704ab8e51a932097d6e3 /src/udev/udev-builtin-btrfs.c | |
parent | Delete duplicate lines (diff) | |
download | systemd-a1193286085ba0b6962df4e4a5fed0a3dc553772.tar.xz systemd-a1193286085ba0b6962df4e4a5fed0a3dc553772.zip |
udev: use SYNTHETIC_ERRNO() macro in log_device_*_errno()
Diffstat (limited to 'src/udev/udev-builtin-btrfs.c')
-rw-r--r-- | src/udev/udev-builtin-btrfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-btrfs.c b/src/udev/udev-builtin-btrfs.c index 85dba3d099..956be59afb 100644 --- a/src/udev/udev-builtin-btrfs.c +++ b/src/udev/udev-builtin-btrfs.c @@ -18,7 +18,7 @@ static int builtin_btrfs(sd_device *dev, int argc, char *argv[], bool test) { int r; if (argc != 3 || !streq(argv[1], "ready")) - return log_device_error_errno(dev, EINVAL, "Invalid arguments"); + return log_device_error_errno(dev, SYNTHETIC_ERRNO(EINVAL), "Invalid arguments"); fd = open("/dev/btrfs-control", O_RDWR|O_CLOEXEC); if (fd < 0) |