Print the systemd version in a format that dracut likes
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 4 Jan 2019 14:07:43 +0000 (15:07 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 6 Jan 2019 12:57:31 +0000 (13:57 +0100)
- systemd 240-63-g4199f68+
+ systemd 240 (240-63-g4199f68+)

Sad, but easy.

Fixes #11330.

src/basic/util.c

index 96c314e..e577c93 100644 (file)
@@ -557,7 +557,7 @@ uint64_t system_tasks_max_scale(uint64_t v, uint64_t max) {
 }
 
 int version(void) {
-        puts("systemd " GIT_VERSION "\n"
+        puts("systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n"
              SYSTEMD_FEATURES);
         return 0;
 }