chiark / gitweb /
loginctl: when showing device tree of seats with no devices show something useful
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Dec 2013 16:16:33 +0000 (17:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Dec 2013 17:21:28 +0000 (18:21 +0100)
src/login/sysfs-show.c

index 3286411..939bd61 100644 (file)
@@ -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;
 }