diff options
author | Simon Glass <sjg@chromium.org> | 2023-01-17 20:48:18 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-24 02:11:41 +0300 |
commit | f738c73a2b0e03840fe5a9540aa84115f20b41e2 (patch) | |
tree | 0b6fe85dc6143039bcad53c583df1aabc1d0bbb7 /boot | |
parent | a950f2855a5fcc1e550aa6786720a3a995b1ceda (diff) | |
download | u-boot-f738c73a2b0e03840fe5a9540aa84115f20b41e2.tar.xz |
bootstd: Add a little more logging of bootflows
Add some logging to aid debugging of problems with bootflows.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot')
-rw-r--r-- | boot/bootdev-uclass.c | 1 | ||||
-rw-r--r-- | boot/bootflow.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/boot/bootdev-uclass.c b/boot/bootdev-uclass.c index 522ecf38eb..99ee08e335 100644 --- a/boot/bootdev-uclass.c +++ b/boot/bootdev-uclass.c @@ -546,6 +546,7 @@ int bootdev_get_bootflow(struct udevice *dev, struct bootflow_iter *iter, { 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); diff --git a/boot/bootflow.c b/boot/bootflow.c index 03a180bcdd..dc3f1f0c73 100644 --- a/boot/bootflow.c +++ b/boot/bootflow.c @@ -367,6 +367,7 @@ int bootflow_scan_first(struct udevice *dev, const char *label, 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); @@ -386,11 +387,13 @@ int bootflow_scan_next(struct bootflow_iter *iter, struct bootflow *bflow) 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; @@ -399,6 +402,7 @@ int bootflow_scan_next(struct bootflow_iter *iter, struct bootflow *bflow) return log_msg_ret("all", ret); } } else { + log_debug("incr failed, err=%d\n", ret); iter->err = ret; } |