Skip to content

Commit a005740

Browse files
mhiramatrostedt
authored andcommitted
bootconfig: Show the number of nodes on boot message
Show the number of bootconfig nodes on boot message. Link: http://lkml.kernel.org/r/158091062297.27924.9051634676068550285.stgit@devnote2 Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 0f0d0a7 commit a005740

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

init/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ static void __init setup_boot_config(const char *cmdline)
342342
char *data, *copy;
343343
const char *p;
344344
u32 *hdr;
345+
int ret;
345346

346347
p = strstr(cmdline, "bootconfig");
347348
if (!p || (p != cmdline && !isspace(*(p-1))) ||
@@ -379,10 +380,11 @@ static void __init setup_boot_config(const char *cmdline)
379380
memcpy(copy, data, size);
380381
copy[size] = '\0';
381382

382-
if (xbc_init(copy) < 0)
383+
ret = xbc_init(copy);
384+
if (ret < 0)
383385
pr_err("Failed to parse bootconfig\n");
384386
else {
385-
pr_info("Load bootconfig: %d bytes\n", size);
387+
pr_info("Load bootconfig: %d bytes %d nodes\n", size, ret);
386388
/* keys starting with "kernel." are passed via cmdline */
387389
extra_command_line = xbc_make_cmdline("kernel");
388390
/* Also, "init." keys are init arguments */

0 commit comments

Comments
 (0)