projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ea2578
)
core: supress description in status if same as id
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 30 Jun 2021 11:11:33 +0000
(13:11 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 30 Jun 2021 11:25:16 +0000
(13:25 +0200)
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index ff9019a449569d93279898fbc9abc1ea782ac479..c67304ab408321a61ac2ab260a709007795674df 100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-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;