[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:
parent
062666c7c4
commit
e5c8524447
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue