mirror of
https://github.com/systemd/systemd
synced 2024-07-21 02:05:05 +00:00
Merge pull request #27686 from keszybz/make-boot-output-nicer
Make boot output nicer
This commit is contained in:
commit
47f4ddaf28
|
@ -4198,14 +4198,14 @@ _public_ int sd_bus_get_description(sd_bus *bus, const char **description) {
|
|||
assert_return(bus, -EINVAL);
|
||||
assert_return(bus = bus_resolve(bus), -ENOPKG);
|
||||
assert_return(description, -EINVAL);
|
||||
assert_return(bus->description, -ENXIO);
|
||||
assert_return(!bus_origin_changed(bus), -ECHILD);
|
||||
|
||||
if (bus->description)
|
||||
*description = bus->description;
|
||||
else
|
||||
*description = runtime_scope_to_string(bus->runtime_scope);
|
||||
const char *d = bus->description;
|
||||
if (!d)
|
||||
d = runtime_scope_to_string(bus->runtime_scope);
|
||||
if (!d)
|
||||
return -ENXIO;
|
||||
|
||||
*description = d;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -2603,7 +2603,6 @@ _public_ int sd_event_source_set_description(sd_event_source *s, const char *des
|
|||
_public_ int sd_event_source_get_description(sd_event_source *s, const char **description) {
|
||||
assert_return(s, -EINVAL);
|
||||
assert_return(description, -EINVAL);
|
||||
assert_return(!event_origin_changed(s->event), -ECHILD);
|
||||
|
||||
if (!s->description)
|
||||
return -ENXIO;
|
||||
|
|
|
@ -146,7 +146,7 @@ static int run(int argc, char *argv[]) {
|
|||
|
||||
r = safe_atollu(swap, &s);
|
||||
if (r < 0 || s == 0)
|
||||
log_warning("Swap is currently not detected; memory pressure usage will be degraded");
|
||||
log_warning("No swap; memory pressure usage will be degraded");
|
||||
|
||||
if (!is_pressure_supported())
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "Pressure Stall Information (PSI) is not supported");
|
||||
|
|
Loading…
Reference in a new issue