]> git.ozlabs.org Git - petitboot/commitdiff
discover/udev: Don't print properties of skipped devices
authorJeremy Kerr <jk@ozlabs.org>
Wed, 8 May 2013 12:21:59 +0000 (20:21 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 9 May 2013 00:35:46 +0000 (08:35 +0800)
This cleans up the log output a little.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
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;