From: Zbigniew Jędrzejewski-Szmek Date: Tue, 1 Jun 2021 14:46:53 +0000 (+0200) Subject: core: show manager version in dump X-Git-Tag: v249-rc1~110^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0517ececff1d56694f07543a1707f1f061e9e9e8;p=thirdparty%2Fsystemd.git core: show manager version in dump This makes it easier to not get lost which one is which when comparing two dumps. --- diff --git a/src/core/manager-dump.c b/src/core/manager-dump.c index 850ee365238..dba32464e2b 100644 --- a/src/core/manager-dump.c +++ b/src/core/manager-dump.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#include "build.h" #include "fd-util.h" #include "fileio.h" #include "hashmap.h" @@ -32,6 +33,9 @@ void manager_dump(Manager *m, FILE *f, const char *prefix) { assert(m); assert(f); + fprintf(f, "%sManager: systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n", strempty(prefix)); + fprintf(f, "%sFeatures: %s\n", strempty(prefix), systemd_features); + for (ManagerTimestamp q = 0; q < _MANAGER_TIMESTAMP_MAX; q++) { const dual_timestamp *t = m->timestamps + q; char buf[CONST_MAX(FORMAT_TIMESPAN_MAX, FORMAT_TIMESTAMP_MAX)];