X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=devices%2Fparser.c;h=00f36598f0e25e4431feab15cf2cc67c3bd447ba;hb=b20bc9a1536b8fc8d63251e1bfbcd67159242405;hp=b9edff7b4fa01160d4824600f6d61d76ed96da34;hpb=0baa987696e787f5136f2296295206d99c238f19;p=petitboot diff --git a/devices/parser.c b/devices/parser.c index b9edff7..00f3659 100644 --- a/devices/parser.c +++ b/devices/parser.c @@ -21,13 +21,13 @@ void iterate_parsers(const char *devpath, const char *mountpoint) { int i; - pb_log("trying parsers for %s@%s\n", devpath, mountpoint); + pb_log("trying parsers for %s\n", devpath); for (i = 0; parsers[i]; i++) { pb_log("\ttrying parser '%s'\n", parsers[i]->name); /* just use a dummy device path for now */ - if (parsers[i]->parse(devpath, mountpoint)) - /*return*/; + if (parsers[i]->parse(devpath, mountpoint_for_device(devpath))) + return; } pb_log("\tno boot_options found\n"); }