mirror of
https://github.com/systemd/systemd
synced 2024-07-24 03:36:24 +00:00
core: supress description in status if same as id
This commit is contained in:
parent
8ea2578529
commit
0d69ef2133
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue