summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/lib/libudev-list.c')
-rw-r--r--udev/lib/libudev-list.c7
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;
}