ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
8d86bd
From f27568d24a29590b34fec3a96a5b3b5d290ba3d8 Mon Sep 17 00:00:00 2001
8d86bd
From: David Tardon <dtardon@redhat.com>
8d86bd
Date: Fri, 24 Jun 2022 09:59:44 +0200
8d86bd
Subject: [PATCH] =?UTF-8?q?tree-wide:=20allow=20ASCII=20fallback=20for=20?=
8d86bd
 =?UTF-8?q?=E2=80=A6=20in=20logs?=
8d86bd
MIME-Version: 1.0
8d86bd
Content-Type: text/plain; charset=UTF-8
8d86bd
Content-Transfer-Encoding: 8bit
8d86bd
8d86bd
(cherry picked from commit 28e5e1e97f47067bce190ea6b3404907d63e4320)
8d86bd
8d86bd
Related: #2093479
8d86bd
---
8d86bd
 src/core/manager.c      | 5 +++--
8d86bd
 src/shared/vlan-util.c  | 3 ++-
8d86bd
 src/sysusers/sysusers.c | 5 +++--
8d86bd
 src/tmpfiles/tmpfiles.c | 6 +++---
8d86bd
 4 files changed, 11 insertions(+), 8 deletions(-)
8d86bd
8d86bd
diff --git a/src/core/manager.c b/src/core/manager.c
8d86bd
index 845c26f498..5873e5b6d7 100644
8d86bd
--- a/src/core/manager.c
8d86bd
+++ b/src/core/manager.c
8d86bd
@@ -49,6 +49,7 @@
8d86bd
 #include "io-util.h"
8d86bd
 #include "label.h"
8d86bd
 #include "locale-setup.h"
8d86bd
+#include "locale-util.h"
8d86bd
 #include "log.h"
8d86bd
 #include "macro.h"
8d86bd
 #include "manager.h"
8d86bd
@@ -1404,7 +1405,7 @@ static void manager_coldplug(Manager *m) {
8d86bd
 
8d86bd
         assert(m);
8d86bd
 
8d86bd
-        log_debug("Invoking unit coldplug() handlers…");
8d86bd
+        log_debug("Invoking unit coldplug() handlers%s", special_glyph(ELLIPSIS));
8d86bd
 
8d86bd
         /* Let's place the units back into their deserialized state */
8d86bd
         HASHMAP_FOREACH_KEY(u, k, m->units, i) {
8d86bd
@@ -1426,7 +1427,7 @@ static void manager_catchup(Manager *m) {
8d86bd
 
8d86bd
         assert(m);
8d86bd
 
8d86bd
-        log_debug("Invoking unit catchup() handlers…");
8d86bd
+        log_debug("Invoking unit catchup() handlers%s", special_glyph(ELLIPSIS));
8d86bd
 
8d86bd
         /* Let's catch up on any state changes that happened while we were reloading/reexecing */
8d86bd
         HASHMAP_FOREACH_KEY(u, k, m->units, i) {
8d86bd
diff --git a/src/shared/vlan-util.c b/src/shared/vlan-util.c
8d86bd
index 400994a354..9301dacbe2 100644
8d86bd
--- a/src/shared/vlan-util.c
8d86bd
+++ b/src/shared/vlan-util.c
8d86bd
@@ -1,6 +1,7 @@
8d86bd
 /* SPDX-License-Identifier: LGPL-2.1+ */
8d86bd
 
8d86bd
 #include "conf-parser.h"
8d86bd
+#include "locale-util.h"
8d86bd
 #include "parse-util.h"
8d86bd
 #include "string-util.h"
8d86bd
 #include "vlan-util.h"
8d86bd
@@ -67,7 +68,7 @@ int config_parse_vlanid(
8d86bd
 
8d86bd
         r = parse_vlanid(rvalue, id);
8d86bd
         if (r == -ERANGE) {
8d86bd
-                log_syntax(unit, LOG_ERR, filename, line, r, "VLAN identifier outside of valid range 0…4094, ignoring: %s", rvalue);
8d86bd
+                log_syntax(unit, LOG_ERR, filename, line, r, "VLAN identifier outside of valid range 0%s4094, ignoring: %s", special_glyph(ELLIPSIS), rvalue);
8d86bd
                 return 0;
8d86bd
         }
8d86bd
         if (r < 0) {
8d86bd
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c
8d86bd
index a374ebaaf4..f547388151 100644
8d86bd
--- a/src/sysusers/sysusers.c
8d86bd
+++ b/src/sysusers/sysusers.c
8d86bd
@@ -12,6 +12,7 @@
8d86bd
 #include "format-util.h"
8d86bd
 #include "fs-util.h"
8d86bd
 #include "hashmap.h"
8d86bd
+#include "locale-util.h"
8d86bd
 #include "pager.h"
8d86bd
 #include "path-util.h"
8d86bd
 #include "selinux-util.h"
8d86bd
@@ -1890,13 +1891,13 @@ static int read_config_files(char **args) {
8d86bd
 
8d86bd
         STRV_FOREACH(f, files)
8d86bd
                 if (p && path_equal(*f, p)) {
8d86bd
-                        log_debug("Parsing arguments at position \"%s\"…", *f);
8d86bd
+                        log_debug("Parsing arguments at position \"%s\"%s", *f, special_glyph(ELLIPSIS));
8d86bd
 
8d86bd
                         r = parse_arguments(args);
8d86bd
                         if (r < 0)
8d86bd
                                 return r;
8d86bd
                 } else {
8d86bd
-                        log_debug("Reading config file \"%s\"…", *f);
8d86bd
+                        log_debug("Reading config file \"%s\"%s", *f, special_glyph(ELLIPSIS));
8d86bd
 
8d86bd
                         /* Just warn, ignore result otherwise */
8d86bd
                         (void) read_config_file(*f, true);
8d86bd
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
8d86bd
index b3c2aac746..8da525120b 100644
8d86bd
--- a/src/tmpfiles/tmpfiles.c
8d86bd
+++ b/src/tmpfiles/tmpfiles.c
8d86bd
@@ -2654,7 +2654,7 @@ static int read_config_file(char **config_dirs, const char *fn, bool ignore_enoe
8d86bd
         assert(fn);
8d86bd
 
8d86bd
         if (streq(fn, "-")) {
8d86bd
-                log_debug("Reading config from stdin…");
8d86bd
+                log_debug("Reading config from stdin%s", special_glyph(ELLIPSIS));
8d86bd
                 fn = "<stdin>";
8d86bd
                 f = stdin;
8d86bd
         } else {
8d86bd
@@ -2667,7 +2667,7 @@ static int read_config_file(char **config_dirs, const char *fn, bool ignore_enoe
8d86bd
 
8d86bd
                         return log_error_errno(r, "Failed to open '%s': %m", fn);
8d86bd
                 }
8d86bd
-                log_debug("Reading config file \"%s\"…", fn);
8d86bd
+                log_debug("Reading config file \"%s\"%s", fn, special_glyph(ELLIPSIS));
8d86bd
                 f = _f;
8d86bd
         }
8d86bd
 
8d86bd
@@ -2765,7 +2765,7 @@ static int read_config_files(char **config_dirs, char **args, bool *invalid_conf
8d86bd
 
8d86bd
         STRV_FOREACH(f, files)
8d86bd
                 if (p && path_equal(*f, p)) {
8d86bd
-                        log_debug("Parsing arguments at position \"%s\"…", *f);
8d86bd
+                        log_debug("Parsing arguments at position \"%s\"%s", *f, special_glyph(ELLIPSIS));
8d86bd
 
8d86bd
                         r = parse_arguments(config_dirs, args, invalid_config);
8d86bd
                         if (r < 0)