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:
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 New Issue
Block a user