diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-30 15:54:12 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-04-30 21:41:06 +0200 |
commit | 4e494e6aace40a356e646414b48f32c49ec7bbd8 (patch) | |
tree | 72b338f5285d0078c24446f301302e2ba6d8dab8 /src/cryptenroll/cryptenroll.c | |
parent | build-path: fix SIGSEGV on RISC-V and MIPS (diff) | |
download | systemd-4e494e6aace40a356e646414b48f32c49ec7bbd8.tar.xz systemd-4e494e6aace40a356e646414b48f32c49ec7bbd8.zip |
tree-wise: several cleanups for logging
- drop unnecessary SYNTHETIC_ERRNO() when the logger does not propagate
error code,
- drop unnecessary '%m' in error message when the error code is
specified with SYNTHETIC_ERRNO(),
- add missing full stop at the end of log message,
- use RET_GATHER(),
- add missing ", ignoring.",
- upeercase the first letter, etc., etc...
Diffstat (limited to 'src/cryptenroll/cryptenroll.c')
-rw-r--r-- | src/cryptenroll/cryptenroll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptenroll/cryptenroll.c b/src/cryptenroll/cryptenroll.c index 2083641897..9c618ad28a 100644 --- a/src/cryptenroll/cryptenroll.c +++ b/src/cryptenroll/cryptenroll.c @@ -143,7 +143,7 @@ static int determine_default_node(void) { return log_error_errno(r, "Unable to query DM_UUID udev property of backing block device for /var/: %m"); if (!startswith(dm_uuid, "CRYPT-LUKS2-")) - return log_error_errno(SYNTHETIC_ERRNO(ENXIO), "Block device backing /var/ is not a LUKS2 device: %m"); + return log_error_errno(SYNTHETIC_ERRNO(ENXIO), "Block device backing /var/ is not a LUKS2 device."); _cleanup_(sd_device_unrefp) sd_device *origin = NULL; r = block_device_get_originating(dev, &origin); |