[PATCH] bbu: report what device caused the handler to be unavailble
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jul 29 07:32:33 PDT 2024
The current message only lists the handler name, but to understand why
the operation failed, it's useful to print also the path of the device
that wasn't found. Change the info message to list both.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
common/bbu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/bbu.c b/common/bbu.c
index ba2566acdfad..f71747aa2f6d 100644
--- a/common/bbu.c
+++ b/common/bbu.c
@@ -55,8 +55,8 @@ void bbu_append_handlers_to_file_list(struct file_list *files)
if (stat(devpath, &s) == 0) {
append_bbu_entry(handler->name, devpath, files);
} else {
- pr_info("Skipping unavailable handler bbu-%s\n",
- handler->name);
+ pr_info("Skipping handler bbu-%s: %s unavailable\n",
+ handler->name, devpath);
}
free(devpath);
--
2.39.2
More information about the barebox
mailing list