]> git.ozlabs.org Git - petitboot/blobdiff - discover/parser.c
discover: Add missing udev_destroy call
[petitboot] / discover / parser.c
index c106dec0ae20c0a6210d317060cbe125f9656450..5f4e5149557678c6e0c34c59c02a42f5b5b46317 100644 (file)
@@ -1,22 +1,23 @@
 
 #include <stdlib.h>
 
-#include "pb-protocol/pb-protocol.h"
+#include "types/types.h"
 #include <log/log.h>
 
 #include "device-handler.h"
 #include "parser.h"
 #include "parser-utils.h"
 
+struct parser __grub2_parser;
+struct parser __kboot_parser;
 struct parser __native_parser;
 struct parser __yaboot_parser;
-struct parser __kboot_parser;
-struct parser __grub2_parser;
 
 static const struct parser *const parsers[] = {
 //     &__native_parser,
-       &__yaboot_parser,
        &__kboot_parser,
+       &__grub2_parser,
+       &__yaboot_parser,
        NULL
 };
 
@@ -25,7 +26,7 @@ void iterate_parsers(struct discover_context *ctx)
        int i;
        unsigned int count = 0;
 
-       pb_log("trying parsers for %s\n", ctx->device_path);
+       pb_log("trying parsers for %s\n", ctx->device->device->id);
 
        for (i = 0; parsers[i]; i++) {
                pb_log("\ttrying parser '%s'\n", parsers[i]->name);