[PATCH] bbu: report what device caused the handler to be unavailble

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux