From 1531a496e37be4da0e094f72f6f5c8eb8d4a150a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Sep 2022 12:18:47 +0200 Subject: [PATCH] manager: make clear internal Dump() logic is debugging only. (cherry picked from commit acf2de52171106f7084e9410f4cc838b9a4183dd) --- src/core/manager-dump.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/manager-dump.c b/src/core/manager-dump.c index 789c552723..61717d8006 100644 --- a/src/core/manager-dump.c +++ b/src/core/manager-dump.c @@ -33,6 +33,10 @@ void manager_dump(Manager *m, FILE *f, const char *prefix) { assert(m); assert(f); + /* NB: this is a debug interface for developers. It's not supposed to be machine readable or be + * stable between versions. We take the liberty to restructure it entirely between versions and + * add/remove fields at will. */ + fprintf(f, "%sManager: systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n", strempty(prefix)); fprintf(f, "%sFeatures: %s\n", strempty(prefix), systemd_features);