]> git.ozlabs.org Git - petitboot/blobdiff - discover/udev.c
discover/udev: Don't print properties of skipped devices
[petitboot] / discover / udev.c
index c81183f742db260bd8310285b32677ca3e271860..cd2a61ef6813ba9ee6907b7ef026429b8e44f22e 100644 (file)
@@ -102,8 +102,6 @@ static int udev_handle_dev_action(struct udev_device *dev, const char *action)
                return -1;
        }
 
-       print_device_properties(dev);
-
        /* Ignore non disk or partition, ram, loop. */
 
        if (!(strstr(devtype, "disk") || strstr(devtype, "partition"))
@@ -124,6 +122,8 @@ static int udev_handle_dev_action(struct udev_device *dev, const char *action)
                return 0;
        }
 
+       print_device_properties(dev);
+
        event = talloc(NULL, struct event);
 
        event->type = EVENT_TYPE_UDEV;