diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-18 17:12:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-18 18:21:28 +0100 |
commit | e120204729764f6243b60899eb907103e678bee2 (patch) | |
tree | 6513453989189dec5bdc57a2e0a28a2bfee2012a /src/login/sysfs-show.c | |
parent | fa28bc2df724e4aff46d19cb7aa732cc64c71061 (diff) | |
download | systemd-e120204729764f6243b60899eb907103e678bee2.tar.gz |
core,logind,networkd: check for udev device initialization via enumeration matches
Instead of checking each device after we got it, check wuth an
enumeration filter instead, to make it more efficient.
Diffstat (limited to 'src/login/sysfs-show.c')
-rw-r--r-- | src/login/sysfs-show.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/login/sysfs-show.c b/src/login/sysfs-show.c index f7d11ddc4c..05cb787a68 100644 --- a/src/login/sysfs-show.c +++ b/src/login/sysfs-show.c @@ -170,7 +170,10 @@ int show_sysfs(const char *seat, const char *prefix, unsigned n_columns) { r = udev_enumerate_add_match_tag(e, seat); else r = udev_enumerate_add_match_tag(e, "seat"); + if (r < 0) + return r; + r = udev_enumerate_add_match_is_initialized(e); if (r < 0) return r; |