if (!result)
return -EINVAL;
- bus_print_property_value(name, expected_value, value, result);
+ if (all || !isempty(result))
+ bus_print_property_value(name, expected_value, value, result);
} else if (STR_IN_SET(name, "CapabilityBoundingSet", "AmbientCapabilities")) {
_cleanup_free_ char *s = NULL;
if (r < 0)
return r;
- bus_print_property_value(name, expected_value, value, s);
+ if (all || !isempty(s))
+ bus_print_property_value(name, expected_value, value, s);
} else if ((STR_IN_SET(name, "CPUWeight", "StartupCPUWeight", "IOWeight", "StartupIOWeight") && u == CGROUP_WEIGHT_INVALID) ||
(STR_IN_SET(name, "CPUShares", "StartupCPUShares") && u == CGROUP_CPU_SHARES_INVALID) ||
if (n < 0)
return log_oom();
- bus_print_property_value(name, expected_value, value, h);
+ if (all || !isempty(h))
+ bus_print_property_value(name, expected_value, value, h);
return 1;
if (!affinity)
return log_oom();
- bus_print_property_value(name, expected_value, value, affinity);
+ if (all || !isempty(affinity))
+ bus_print_property_value(name, expected_value, value, affinity);
return 1;
} else if (streq(name, "MountImages")) {