1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-03 01:17:45 +03:00

manager: make clear internal Dump() logic is debugging only.

(cherry picked from commit acf2de5217)
(cherry picked from commit 1531a496e3)
This commit is contained in:
Lennart Poettering 2022-09-27 12:18:47 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent d4b9c0477d
commit 787034e091

View File

@ -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);