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 b124fc5..cab7164 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 520cbdb..95c458f 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 f35c91c..1d59bcb 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 0aa3796..5b23c93 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 3cb4cf2..55f1134 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 37d4e9c..d514922 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 397d09b..513bf66 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 3e7b0f8..827d7b5 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 feacdb2..65ee0fe 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 32c2256..75f8ef8 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 3f2538a..b69b6e3 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"