]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
various: boldify version output
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 9 Feb 2023 13:50:47 +0000 (14:50 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 9 Feb 2023 15:32:33 +0000 (15:32 +0000)
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.

src/basic/build.c

index aaf7d2ceeb80038495fa40515309ab9fb157f5a9..c587adad7b063d824c543fe78f17ca44456867e4 100644 (file)
@@ -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;
 }