summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-18 17:16:33 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-18 18:21:28 +0100
commitddae67fa1bdd86b480a60ad6fc1d90d6f35a03d0 (patch)
tree188c4ef096f6adab0410f295569949b7765c74f5
parent06acf2d46a38bec212d78094e6ef8b100679048a (diff)
loginctl: when showing device tree of seats with no devices show something useful
-rw-r--r--src/login/sysfs-show.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/sysfs-show.c b/src/login/sysfs-show.c
index 3286411de8..939bd6125e 100644
--- a/src/login/sysfs-show.c
+++ b/src/login/sysfs-show.c
@@ -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;
}