diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-14 19:53:47 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-14 19:53:47 +0200 |
commit | 517814e7d07fb7a2a4f914c973a8164d4341c6c4 (patch) | |
tree | f985bd3959f024c58b104170ae114a511ea1da5b /udev/lib/libudev-list.c | |
parent | f4700eb8a02c17972c3cef658bd8c96a725355b8 (diff) |
libudev: handle ! in sysname, add sysnum, return allocated list_entry on add
Diffstat (limited to 'udev/lib/libudev-list.c')
-rw-r--r-- | udev/lib/libudev-list.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/udev/lib/libudev-list.c b/udev/lib/libudev-list.c index 8545835078..25e69cb3a3 100644 --- a/udev/lib/libudev-list.c +++ b/udev/lib/libudev-list.c @@ -197,9 +197,12 @@ struct udev_list_entry *udev_list_entry_get_by_name(struct udev_list_entry *list { struct udev_list_entry *entry; - udev_list_entry_foreach(entry, list_entry) - if (strcmp(udev_list_entry_get_name(entry), name) == 0) + udev_list_entry_foreach(entry, list_entry) { + if (strcmp(udev_list_entry_get_name(entry), name) == 0) { + dbg(entry->udev, "found '%s=%s'\n", entry->name, entry->value); return entry; + } + } return NULL; } |