[PATCH] common: bootm: print error in case of appendroot failed

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

 



Inform the user that appendroot failed instead of silently dropping the
request. This makes the debugging easier e.g. if nt-signature wasn't set
correctly.

Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>
---
 common/bootm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/bootm.c b/common/bootm.c
index 3c80e8bf94..1c722afc80 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -729,6 +729,8 @@ int bootm_boot(struct bootm_data *bootm_data)
 			globalvar_add_simple("linux.bootargs.bootm.appendroot",
 					     rootarg);
 			free(rootarg);
+		} else {
+			pr_err("Failed to append kernel cmdline parameter 'root='\n");
 		}
 	}
 
-- 
2.30.2





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

  Powered by Linux