diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-12-03 11:12:59 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-12-03 12:16:02 +0100 |
commit | 91b79ba84ef8fdd008b61581c32a7aa746a2b492 (patch) | |
tree | 42e413b12dfea6c72314761278317508a81889d3 /src/basic/util.c | |
parent | 6c822dc2d5a5088aa1603bbbf04a87f2276b1b51 (diff) | |
download | systemd-91b79ba84ef8fdd008b61581c32a7aa746a2b492.tar.gz |
shared/build: make the version string definition less terrible
The BLKID and ELFUTILS strings were present twice. Let's reaarange things so that
each times requires definition in exactly one place.
Also let's sort things a bit:
the "heavy hitters" like PAM/MAC first,
then crypto libs,
then other libs, alphabetically,
compressors,
and external compat integrations.
I think it's useful for users to group similar concepts together to some extent.
For example, when checking what compression is available, it helps a lot to have
them listed together.
FDISK is renamed to LIBFDISK to make it clear that this is about he library and
the executable.
Diffstat (limited to 'src/basic/util.c')
-rw-r--r-- | src/basic/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/util.c b/src/basic/util.c index f98ecf3858..b080ce4e96 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -193,8 +193,8 @@ int container_get_leader(const char *machine, pid_t *pid) { } int version(void) { - puts("systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n" - SYSTEMD_FEATURES); + printf("systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n%s\n", + systemd_features); return 0; } |