{
const struct bootdev_ops *ops = bootdev_get_ops(dev);
+ log_debug("->get_bootflow %s=%p\n", dev->name, ops->get_bootflow);
bootflow_init(bflow, dev, iter->method);
if (!ops->get_bootflow)
return default_get_bootflow(dev, iter, bflow);
ret = bootflow_check(iter, bflow);
if (ret) {
+ log_debug("check - ret=%d\n", ret);
if (ret != BF_NO_MORE_PARTS && ret != -ENOSYS) {
if (iter->flags & BOOTFLOWF_ALL)
return log_msg_ret("all", ret);
do {
ret = iter_incr(iter);
+ log_debug("iter_incr: ret=%d\n", ret);
if (ret == BF_NO_MORE_DEVICES)
return log_msg_ret("done", ret);
if (!ret) {
ret = bootflow_check(iter, bflow);
+ log_debug("check - ret=%d\n", ret);
if (!ret)
return 0;
iter->err = ret;
return log_msg_ret("all", ret);
}
} else {
+ log_debug("incr failed, err=%d\n", ret);
iter->err = ret;
}