To make it easier to follow how bootsource target is resolved, print out the resolution as well as the concrete name of the target on error.
The latter is especially useful when specifying partitions, e.g. bootsource.2. Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de> --- common/bootdef.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/bootdef.c b/common/bootdef.c index 254228580191..e8140d3a6bce 100644 --- a/common/bootdef.c +++ b/common/bootdef.c @@ -13,6 +13,7 @@ static int bootdev_process(struct cdev *cdev, void *entries) { + pr_info("resolved to %s\n", cdev->name); return bootentry_create_from_name(entries, cdev->name); } @@ -22,7 +23,7 @@ static int bootdef_add_entry(struct bootentries *entries, const char *name) ret = cdev_alias_resolve_for_each(name, bootdev_process, entries); if (ret == -ENODEV) { - pr_info("Could not autodetect bootsource device\n"); + pr_info("Could not autodetect %s device\n", name); return 0; } -- 2.39.5