From 0c90efc9dbe73d8ac149965ebb4ca7130be7acb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 9 Feb 2023 14:50:47 +0100 Subject: [PATCH] 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. --- src/basic/build.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }