Add DEVPATH to udev_print_event()
authorGeoff Levand <geoff@infradead.org>
Tue, 27 Mar 2012 01:47:35 +0000 (18:47 -0700)
committerGeoff Levand <geoff@infradead.org>
Tue, 27 Mar 2012 01:47:35 +0000 (18:47 -0700)
Signed-off-by: Geoff Levand <geoff@infradead.org>
discover/udev.c

index bc0282749fe282521c15017dbff539a69527866c..798d744873ef049117323dcead7e989650102ae3 100644 (file)
@@ -30,7 +30,12 @@ struct udev {
 static void udev_print_event(struct event *event)
 {
        const char *action, *params[] = {
-               "DEVNAME", "ID_TYPE", "ID_BUS", "ID_FS_UUID", "ID_FS_LABEL",
+               "DEVNAME",
+               "DEVPATH",
+               "ID_TYPE",
+               "ID_BUS",
+               "ID_FS_UUID",
+               "ID_FS_LABEL",
                NULL,
        };
        int i;
@@ -43,7 +48,6 @@ static void udev_print_event(struct event *event)
        for (i = 0; params[i]; i++)
                pb_log("\t%-12s => %s\n",
                                params[i], event_get_param(event, params[i]));
-
 }
 
 static void udev_handle_message(struct udev *udev, char *buf, int len)