tools/bootconfig: Show the number of bootconfig nodes
Show the number of bootconfig nodes when applying new bootconfig to initrd. Since there are limitations of bootconfig not only in its filesize, but also the number of nodes, the number should be shown when applying so that user can get the feeling of scale of current bootconfig. Link: http://lkml.kernel.org/r/158091061337.27924.10886706631693823982.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:

committed by
Steven Rostedt (VMware)

parent
597c0e3b45
commit
0f0d0a77cc
@@ -268,6 +268,7 @@ int apply_xbc(const char *path, const char *xbc_path)
|
||||
return ret;
|
||||
}
|
||||
printf("Apply %s to %s\n", xbc_path, path);
|
||||
printf("\tNumber of nodes: %d\n", ret);
|
||||
printf("\tSize: %u bytes\n", (unsigned int)size);
|
||||
printf("\tChecksum: %d\n", (unsigned int)csum);
|
||||
|
||||
|
Reference in New Issue
Block a user