chiark / gitweb /
get rid of unicode arrows, since the linux console cannot show them, not even in...
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 18:25:55 +0000 (20:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2010 18:25:55 +0000 (20:25 +0200)
automount.c
device.c
job.c
main.c
mount.c
service.c
snapshot.c
socket.c
systemctl.vala
target.c
unit.c

index b124fc5b0efc74c3f46769cfffa862d10fbf1c56..cab7164a5def16d910249ece2f6d9239709da85c 100644 (file)
@@ -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));
index 520cbdb2c218cf05882ab554af4844c11a773a39..95c458f3d775aaa5beb7b7dbf3b89e12ef520326 100644 (file)
--- 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 f35c91c4df28aa4e75707e7f4533d3dfebb94b4a..1d59bcb27f7d99504a3bfbfed9b305e0eca32214 100644 (file)
--- 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 0aa3796e878755fe3bce4df60f508c8d69fe9870..5b23c937b7386e69db20551c3942574d6b248c93 100644 (file)
--- 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 3cb4cf2dd5d1edcbb50c325f170a320bf62ef961..55f11341a6bd03b9f134b2766721fd397a38d1d7 100644 (file)
--- 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));
index 37d4e9c381df23e95b6dbdfedfadb4f6aed33096..d514922b6b9a9c5754e76bdf7f7350071aaeafd5 100644 (file)
--- 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]);
 }
index 397d09be19533cd528927b73a8e7ae7661915fe2..513bf66475679106698f1983fba5a6d058bca519 100644 (file)
@@ -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));
index 3e7b0f8ba5f94b0e0e7c7029e163c59d77c7f84c..827d7b5e97600f5771a5b7d828782e8da650702d 100644 (file)
--- 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));
index feacdb2b7b1e25319e0d0511bee968cd392224ab..65ee0fe72f0f70e42b6ddfd47bc64196d3fe91e8 100644 (file)
@@ -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++;
index 32c2256e2756277d81fdafdf2b3844df3065f3ca..75f8ef8948db484817a53e6a30f1ad71e9645bcb 100644 (file)
--- 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 3f2538a694a386cb920b70738b6f6083fb249cae..b69b6e36201a6cb218bff5c3d51e95c68293cf28 100644 (file)
--- 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"