summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-02-09 14:50:47 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2023-02-09 15:32:33 +0000
commit0c90efc9dbe73d8ac149965ebb4ca7130be7acb1 (patch)
treefa858f35f06d996ed04ae2cb250de447b3128d4c
parent77db9ef2ab4acf88d093086031f529c7d5c3e407 (diff)
downloadsystemd-0c90efc9dbe73d8ac149965ebb4ca7130be7acb1.tar.gz
various: boldify version output
Follow-up for 4453ebe4db0511d25bed1040930ea6430c1bed91. With the feature list all dandified, the most important part of the output, i.e. the project name and version, are less visible.
-rw-r--r--src/basic/build.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/build.c b/src/basic/build.c
index aaf7d2ceeb..c587adad7b 100644
--- a/src/basic/build.c
+++ b/src/basic/build.c
@@ -276,7 +276,8 @@ int version(void) {
if (colors_enabled())
b = systemd_features_with_color();
- printf("systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n%s\n",
+ printf("%ssystemd " STRINGIFY(PROJECT_VERSION) "%s (" GIT_VERSION ")\n%s\n",
+ ansi_highlight(), ansi_normal(),
b ?: systemd_features);
return 0;
}