summaryrefslogtreecommitdiff
path: root/src/home
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2022-06-24 09:59:44 +0200
committerDavid Tardon <dtardon@redhat.com>2022-06-28 12:50:44 +0200
commit28e5e1e97f47067bce190ea6b3404907d63e4320 (patch)
tree5d008272d08a98fd87b7f4690372cd98f668150d /src/home
parente2341b6bc325932b3f9f10874956952cbdbd6361 (diff)
downloadsystemd-28e5e1e97f47067bce190ea6b3404907d63e4320.tar.gz
tree-wide: allow ASCII fallback for … in logs
Diffstat (limited to 'src/home')
-rw-r--r--src/home/homectl.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/home/homectl.c b/src/home/homectl.c
index 56f6096769..7ccee4df10 100644
--- a/src/home/homectl.c
+++ b/src/home/homectl.c
@@ -1688,9 +1688,13 @@ static int passwd_home(int argc, char *argv[], void *userdata) {
int r;
if (arg_pkcs11_token_uri)
- return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "To change the PKCS#11 security token use 'homectl update --pkcs11-token-uri=…'.");
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+ "To change the PKCS#11 security token use 'homectl update --pkcs11-token-uri=%s'.",
+ special_glyph(SPECIAL_GLYPH_ELLIPSIS));
if (arg_fido2_device)
- return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "To change the FIDO2 security token use 'homectl update --fido2-device=…'.");
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
+ "To change the FIDO2 security token use 'homectl update --fido2-device=%s'.",
+ special_glyph(SPECIAL_GLYPH_ELLIPSIS));
if (identity_properties_specified())
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "The 'passwd' verb does not permit changing other record properties at the same time.");
@@ -3613,8 +3617,8 @@ static int parse_argv(int argc, char *argv[]) {
return log_error_errno(r, "Failed to parse --rebalance-weight= argument: %s", optarg);
if (u < REBALANCE_WEIGHT_MIN || u > REBALANCE_WEIGHT_MAX)
- return log_error_errno(SYNTHETIC_ERRNO(ERANGE), "Rebalancing weight out of valid range %" PRIu64 "…%" PRIu64 ": %s",
- REBALANCE_WEIGHT_MIN, REBALANCE_WEIGHT_MAX, optarg);
+ return log_error_errno(SYNTHETIC_ERRNO(ERANGE), "Rebalancing weight out of valid range %" PRIu64 "%s%" PRIu64 ": %s",
+ REBALANCE_WEIGHT_MIN, special_glyph(SPECIAL_GLYPH_ELLIPSIS), REBALANCE_WEIGHT_MAX, optarg);
}
/* Drop from per machine stuff and everywhere */