[systemctl] Don't print ExecXYZEx= when doing 'systemctl status'

The info printed in this function is the same as the non-Ex version of the
property so there's no point double printing.

Other places that print ExecXYZEx= properties are left alone since the
displayed information is different.
This commit is contained in:
Anita Zhang 2019-07-23 13:26:51 -07:00 committed by Lennart Poettering
parent 062666c7c4
commit e5c8524447
1 changed files with 5 additions and 0 deletions

View File

@ -4358,6 +4358,11 @@ static void print_status_info(
if (p->code == 0)
continue;
/* Don't print ExecXYZEx= properties here since it will appear as a
* duplicate of the non-Ex= variant. */
if (endswith(p->name, "Ex"))
continue;
argv = strv_join(p->argv, " ");
printf(" Process: "PID_FMT" %s=%s ", p->pid, p->name, strna(argv));