mirror of
https://github.com/systemd/systemd.git
synced 2024-10-29 04:55:36 +03:00
loginctl: when showing device tree of seats with no devices show something useful
This commit is contained in:
parent
06acf2d46a
commit
ddae67fa1b
@ -179,6 +179,8 @@ int show_sysfs(const char *seat, const char *prefix, unsigned n_columns) {
|
||||
first = udev_enumerate_get_list_entry(e);
|
||||
if (first)
|
||||
show_sysfs_one(udev, seat, &first, "/", prefix, n_columns);
|
||||
else
|
||||
printf("%s%s%s\n", prefix, draw_special_char(DRAW_TREE_RIGHT), "(none)");
|
||||
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user