From 40d50879d9339e539a30e5d32234baffb732f0f9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Apr 2010 20:25:55 +0200 Subject: [PATCH] get rid of unicode arrows, since the linux console cannot show them, not even in unicode mode --- automount.c | 2 +- device.c | 2 +- job.c | 6 +++--- main.c | 4 ++-- mount.c | 2 +- service.c | 4 ++-- snapshot.c | 2 +- socket.c | 4 ++-- systemctl.vala | 2 +- target.c | 2 +- unit.c | 2 +- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/automount.c b/automount.c index b124fc5b..cab7164a 100644 --- a/automount.c +++ b/automount.c @@ -168,7 +168,7 @@ static void automount_set_state(Automount *a, AutomountState state) { unmount_autofs(a); if (state != old_state) - log_debug("%s changed %s → %s", + log_debug("%s changed %s -> %s", UNIT(a)->meta.id, automount_state_to_string(old_state), automount_state_to_string(state)); diff --git a/device.c b/device.c index 520cbdb2..95c458f3 100644 --- a/device.c +++ b/device.c @@ -52,7 +52,7 @@ static void device_set_state(Device *d, DeviceState state) { d->state = state; if (state != old_state) - log_debug("%s changed %s → %s", + log_debug("%s changed %s -> %s", UNIT(d)->meta.id, device_state_to_string(old_state), device_state_to_string(state)); diff --git a/job.c b/job.c index f35c91c4..1d59bcb2 100644 --- a/job.c +++ b/job.c @@ -150,8 +150,8 @@ void job_dump(Job *j, FILE*f, const char *prefix) { assert(f); fprintf(f, - "%s→ Job %u:\n" - "%s\tAction: %s → %s\n" + "%s-> Job %u:\n" + "%s\tAction: %s -> %s\n" "%s\tState: %s\n" "%s\tForced: %s\n", prefix, j->id, @@ -464,7 +464,7 @@ int job_finish_and_invalidate(Job *j, bool success) { /* Patch restart jobs so that they become normal start jobs */ if (success && (j->type == JOB_RESTART || j->type == JOB_TRY_RESTART)) { - log_debug("Converting job %s/%s → %s/%s", + log_debug("Converting job %s/%s -> %s/%s", j->unit->meta.id, job_type_to_string(j->type), j->unit->meta.id, job_type_to_string(JOB_START)); diff --git a/main.c b/main.c index 0aa3796e..5b23c937 100644 --- a/main.c +++ b/main.c @@ -668,7 +668,7 @@ int main(int argc, char *argv[]) { } if (action == ACTION_TEST) { - printf("→ By units:\n"); + printf("-> By units:\n"); manager_dump_units(m, stdout, "\t"); } @@ -678,7 +678,7 @@ int main(int argc, char *argv[]) { } if (action == ACTION_TEST) { - printf("→ By jobs:\n"); + printf("-> By jobs:\n"); manager_dump_jobs(m, stdout, "\t"); retval = 0; goto finish; diff --git a/mount.c b/mount.c index 3cb4cf2d..55f11341 100644 --- a/mount.c +++ b/mount.c @@ -385,7 +385,7 @@ static void mount_set_state(Mount *m, MountState state) { mount_notify_automount(m, -ENODEV); if (state != old_state) - log_debug("%s changed %s → %s", + log_debug("%s changed %s -> %s", UNIT(m)->meta.id, mount_state_to_string(old_state), mount_state_to_string(state)); diff --git a/service.c b/service.c index 37d4e9c3..d514922b 100644 --- a/service.c +++ b/service.c @@ -875,7 +875,7 @@ static void service_dump(Unit *u, FILE *f, const char *prefix) { if (!s->exec_command[c]) continue; - fprintf(f, "%s→ %s:\n", + fprintf(f, "%s-> %s:\n", prefix, service_exec_command_to_string(c)); exec_command_dump_list(s->exec_command[c], f, prefix2); @@ -1069,7 +1069,7 @@ static void service_set_state(Service *s, ServiceState state) { service_close_socket_fd(s); if (old_state != state) - log_debug("%s changed %s → %s", UNIT(s)->meta.id, service_state_to_string(old_state), service_state_to_string(state)); + log_debug("%s changed %s -> %s", UNIT(s)->meta.id, service_state_to_string(old_state), service_state_to_string(state)); unit_notify(UNIT(s), state_translation_table[old_state], state_translation_table[state]); } diff --git a/snapshot.c b/snapshot.c index 397d09be..513bf664 100644 --- a/snapshot.c +++ b/snapshot.c @@ -39,7 +39,7 @@ static void snapshot_set_state(Snapshot *s, SnapshotState state) { s->state = state; if (state != old_state) - log_debug("%s changed %s → %s", + log_debug("%s changed %s -> %s", UNIT(s)->meta.id, snapshot_state_to_string(old_state), snapshot_state_to_string(state)); diff --git a/socket.c b/socket.c index 3e7b0f8b..827d7b5e 100644 --- a/socket.c +++ b/socket.c @@ -251,7 +251,7 @@ static void socket_dump(Unit *u, FILE *f, const char *prefix) { if (!s->exec_command[c]) continue; - fprintf(f, "%s→ %s:\n", + fprintf(f, "%s-> %s:\n", prefix, socket_exec_command_to_string(c)); exec_command_dump_list(s->exec_command[c], f, prefix2); @@ -496,7 +496,7 @@ static void socket_set_state(Socket *s, SocketState state) { socket_close_fds(s); if (state != old_state) - log_debug("%s changed %s → %s", + log_debug("%s changed %s -> %s", s->meta.id, socket_state_to_string(old_state), socket_state_to_string(state)); diff --git a/systemctl.vala b/systemctl.vala index feacdb2b..65ee0fe7 100644 --- a/systemctl.vala +++ b/systemctl.vala @@ -122,7 +122,7 @@ int main (string[] args) { stdout.printf("%-45s %-6s %-12s %-12s", i.id, i.load_state, i.active_state, i.sub_state); if (i.job_id != 0) - stdout.printf(" → %-15s", i.job_type); + stdout.printf(" -> %-15s", i.job_type); stdout.puts("\n"); n++; diff --git a/target.c b/target.c index 32c2256e..75f8ef89 100644 --- a/target.c +++ b/target.c @@ -41,7 +41,7 @@ static void target_set_state(Target *t, TargetState state) { t->state = state; if (state != old_state) - log_debug("%s changed %s → %s", + log_debug("%s changed %s -> %s", UNIT(t)->meta.id, target_state_to_string(old_state), target_state_to_string(state)); diff --git a/unit.c b/unit.c index 3f2538a6..b69b6e36 100644 --- a/unit.c +++ b/unit.c @@ -568,7 +568,7 @@ void unit_dump(Unit *u, FILE *f, const char *prefix) { prefix2 = p2 ? p2 : prefix; fprintf(f, - "%s→ Unit %s:\n" + "%s-> Unit %s:\n" "%s\tDescription: %s\n" "%s\tInstance: %s\n" "%s\tUnit Load State: %s\n" -- 2.39.5