bootconfig: Add more parse error messages
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 5 Feb 2020 13:50:04 +0000 (22:50 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 5 Feb 2020 22:17:05 +0000 (17:17 -0500)
commit597c0e3b4540972580ab36bcc8aa34394bd88cfb
tree5ca44dafb9affc74c8739dba8f2b6c395f931985
parente241d14a82910ffa9060d81864760c93b7256195
bootconfig: Add more parse error messages

Add more error messages for following cases.
 - Exceeding max number of nodes
 - Config tree data is empty (e.g. comment only)
 - Config data is empty or exceeding max size
 - bootconfig is already initialized

Link: http://lkml.kernel.org/r/158091060401.27924.9024818742827122764.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
lib/bootconfig.c