get rid of unicode arrows, since the linux console cannot show them, not even in unicode mode

This commit is contained in:
Lennart Poettering 2010-04-23 20:25:55 +02:00
parent 5dcfe57bb1
commit 40d50879d9
11 changed files with 16 additions and 16 deletions

View 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));

View file

@ -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));

6
job.c
View file

@ -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));

4
main.c
View file

@ -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;

View file

@ -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));

View file

@ -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]);
}

View 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));

View file

@ -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));

View 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++;

View file

@ -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));

2
unit.c
View file

@ -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"