summaryrefslogtreecommitdiff
path: root/src/basic/unit-file.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2022-06-24 09:13:42 +0200
committerDavid Tardon <dtardon@redhat.com>2022-06-28 12:50:43 +0200
commite2341b6bc325932b3f9f10874956952cbdbd6361 (patch)
treeb7ffbab32c7fa4023f8251bdab9c542a11fe52aa /src/basic/unit-file.c
parent1a2620e8bddb360ca4461077827f1b29b30c8756 (diff)
downloadsystemd-e2341b6bc325932b3f9f10874956952cbdbd6361.tar.gz
tree-wide: allow ASCII fallback for → in logs
Diffstat (limited to 'src/basic/unit-file.c')
-rw-r--r--src/basic/unit-file.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/basic/unit-file.c b/src/basic/unit-file.c
index ac0236d635..43d35a2318 100644
--- a/src/basic/unit-file.c
+++ b/src/basic/unit-file.c
@@ -348,13 +348,13 @@ int unit_file_resolve_symlink(
if (r < 0)
return r;
if (is_path(tail))
- log_warning("Suspicious symlink %s/%s→%s, treating as alias.",
- dir, filename, simplified);
+ log_warning("Suspicious symlink %s/%s %s %s, treating as alias.",
+ dir, filename, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), simplified);
dst = resolve_destination_target ? TAKE_PTR(simplified) : TAKE_PTR(target_name);
} else {
- log_debug("Linked unit file: %s/%s → %s", dir, filename, simplified);
+ log_debug("Linked unit file: %s/%s %s %s", dir, filename, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), simplified);
if (resolve_destination_target)
dst = TAKE_PTR(simplified);
@@ -569,8 +569,8 @@ int unit_file_build_name_map(
r = hashmap_ensure_put(&ids, &string_hash_ops_free_free, key, dst);
if (r < 0)
- return log_warning_errno(r, "Failed to add entry to hashmap (%s→%s): %m",
- de->d_name, dst);
+ return log_warning_errno(r, "Failed to add entry to hashmap (%s%s%s): %m",
+ de->d_name, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), dst);
key = dst = NULL;
}
}
@@ -612,7 +612,8 @@ int unit_file_build_name_map(
r = string_strv_hashmap_put(&names, dst, src);
if (r < 0)
- return log_warning_errno(r, "Failed to add entry to hashmap (%s→%s): %m", dst, src);
+ return log_warning_errno(r, "Failed to add entry to hashmap (%s%s%s): %m",
+ dst, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), src);
}
if (cache_timestamp_hash)