]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
manager: use proper unicode arrow in dump
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Apr 2024 09:10:28 +0000 (11:10 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 24 Apr 2024 14:15:53 +0000 (16:15 +0200)
src/core/service.c
src/core/socket.c
src/core/unit-serialize.c

index 4df14b6918510fac796f326e1d7403b1de3c7f68..b2dc42f440190e1950be3996481e173e83fe37ae 100644 (file)
@@ -1023,8 +1023,8 @@ static void service_dump(Unit *u, FILE *f, const char *prefix) {
                 if (!s->exec_command[c])
                         continue;
 
-                fprintf(f, "%s-> %s:\n",
-                        prefix, service_exec_command_to_string(c));
+                fprintf(f, "%s%s %s:\n",
+                        prefix, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), service_exec_command_to_string(c));
 
                 exec_command_dump_list(s->exec_command[c], f, prefix2);
         }
index 36d458f35c01ef14317d321ffd5d3bf99d8006e0..4c8428d1a9a36bd0fdf05ae1939096d3ca75f3e1 100644 (file)
@@ -805,8 +805,8 @@ static void socket_dump(Unit *u, FILE *f, const char *prefix) {
                 if (!s->exec_command[c])
                         continue;
 
-                fprintf(f, "%s-> %s:\n",
-                        prefix, socket_exec_command_to_string(c));
+                fprintf(f, "%s%s %s:\n",
+                        prefix, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), socket_exec_command_to_string(c));
 
                 exec_command_dump_list(s->exec_command[c], f, prefix2);
         }
index 9a4e71713551b3de63f063eb9ed4554a03f6904c..175e327d92558dd4dbc8a0429a4536c4e7f8f9d6 100644 (file)
@@ -451,8 +451,8 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) {
         prefix2 = strjoina(prefix, "\t");
 
         fprintf(f,
-                "%s-> Unit %s:\n",
-                prefix, u->id);
+                "%s%s Unit %s:\n",
+                prefix, special_glyph(SPECIAL_GLYPH_ARROW_RIGHT), u->id);
 
         SET_FOREACH(t, u->aliases)
                 fprintf(f, "%s\tAlias: %s\n", prefix, t);