summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2013-03-02 13:16:27 +0100
committerMichal Schmidt <mschmidt@redhat.com>2013-03-02 17:56:32 +0100
commit076a24adf4bfbb9c5aa8167e102c253c7e1c651e (patch)
tree91e33462e280a29040a851094b8bbc891142ebfb
parente970a72e94413d9011d510c97eadfdc85c96ccc0 (diff)
job: print the "OK" status messages in normal green
The "OK" status messages should not draw attention to themselves. It's better if they're not printed in bright/bold. Leave that to errors and warnings. Use a plain inconspicuous enterprisey green.
-rw-r--r--src/core/job.c4
-rw-r--r--src/shared/util.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/job.c b/src/core/job.c
index 90de550016..d5b7987a00 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -644,7 +644,7 @@ static void job_print_status_message(Unit *u, JobType t, JobResult result) {
case JOB_DONE:
if (u->condition_result)
- unit_status_printf(u, ANSI_HIGHLIGHT_GREEN_ON " OK " ANSI_HIGHLIGHT_OFF, format);
+ unit_status_printf(u, ANSI_GREEN_ON " OK " ANSI_HIGHLIGHT_OFF, format);
break;
case JOB_FAILED:
@@ -678,7 +678,7 @@ static void job_print_status_message(Unit *u, JobType t, JobResult result) {
case JOB_DONE:
case JOB_FAILED:
- unit_status_printf(u, ANSI_HIGHLIGHT_GREEN_ON " OK " ANSI_HIGHLIGHT_OFF, format);
+ unit_status_printf(u, ANSI_GREEN_ON " OK " ANSI_HIGHLIGHT_OFF, format);
break;
default:
diff --git a/src/shared/util.h b/src/shared/util.h
index b5ad1ff3b5..27b21f97cc 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -57,6 +57,7 @@ union dirent_storage {
#define ANSI_HIGHLIGHT_ON "\x1B[1;39m"
#define ANSI_RED_ON "\x1B[31m"
#define ANSI_HIGHLIGHT_RED_ON "\x1B[1;31m"
+#define ANSI_GREEN_ON "\x1B[32m"
#define ANSI_HIGHLIGHT_GREEN_ON "\x1B[1;32m"
#define ANSI_HIGHLIGHT_YELLOW_ON "\x1B[1;33m"
#define ANSI_HIGHLIGHT_OFF "\x1B[0m"