summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c763f15)
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
conf = talloc_zero(dc, struct conf_context);
if (!conf)
conf = talloc_zero(dc, struct conf_context);
if (!conf)
conf->dc = dc;
conf->global_options = kboot_global_options,
conf->dc = dc;
conf->global_options = kboot_global_options,
void iterate_parsers(struct discover_context *ctx)
{
struct parser *parser;
void iterate_parsers(struct discover_context *ctx)
{
struct parser *parser;
+ unsigned int count = 0;
pb_log("trying parsers for %s\n", ctx->device_path);
for (parser = __start_parsers; parser < __stop_parsers; parser++) {
pb_log("\ttrying parser '%s'\n", parser->name);
pb_log("trying parsers for %s\n", ctx->device_path);
for (parser = __start_parsers; parser < __stop_parsers; parser++) {
pb_log("\ttrying parser '%s'\n", parser->name);
- /* just use a dummy device path for now */
- if (parser->parse(ctx))
- return;
+ count += parser->parse(ctx);
- pb_log("\tno boot_options found\n");
+ if (!count)
+ pb_log("\tno boot_options found\n");
}
static int compare_parsers(const void *a, const void *b)
}
static int compare_parsers(const void *a, const void *b)
conf = talloc_zero(dc, struct conf_context);
if (!conf)
conf = talloc_zero(dc, struct conf_context);
if (!conf)
conf->dc = dc;
conf->global_options = yaboot_global_options,
conf->dc = dc;
conf->global_options = yaboot_global_options,