1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00

core: supress description in status if same as id

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-06-30 13:11:33 +02:00
parent 8ea2578529
commit 0d69ef2133

View File

@ -1349,6 +1349,7 @@ const char* unit_status_string(Unit *u, char **combined) {
* The last option is used if configured and the caller provided 'combined' pointer. */
if (!u->description ||
streq(u->description, u->id) ||
u->manager->status_unit_format == STATUS_UNIT_FORMAT_NAME ||
(u->manager->status_unit_format == STATUS_UNIT_FORMAT_COMBINED && !combined))
return u->id;