Add more info in this function so that the partition number and the call
to bootmeth_read_bootflow() are logged.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 boot/bootdev-uclass.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/boot/bootdev-uclass.c b/boot/bootdev-uclass.c
index 282f1d7b5c5..1e52ccc44c3 100644
--- a/boot/bootdev-uclass.c
+++ b/boot/bootdev-uclass.c
@@ -126,7 +126,7 @@ int bootdev_find_in_blk(struct udevice *dev, struct udevice 
*blk,
         * us whether there is valid media there
         */
        ret = part_get_info(desc, iter->part, &info);
-       log_debug("part_get_info() returned %d\n", ret);
+       log_debug("part_get_info() part=%d returned %d\n", iter->part, ret);
        if (!iter->part && ret == -ENOENT)
                ret = 0;
 
@@ -188,8 +188,9 @@ int bootdev_find_in_blk(struct udevice *dev, struct udevice 
*blk,
                bflow->state = BOOTFLOWST_FS;
        }
 
-       log_debug("method %s\n", bflow->method->name);
+       log_debug("using method %s\n", bflow->method->name);
        ret = bootmeth_read_bootflow(bflow->method, bflow);
+       log_debug("method %s returned ret=%d\n", bflow->method->name, ret);
        if (ret)
                return log_msg_ret("method", ret);
 
-- 
2.43.0

Reply via email to