File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ static void __init setup_boot_config(const char *cmdline)
342
342
char * data , * copy ;
343
343
const char * p ;
344
344
u32 * hdr ;
345
+ int ret ;
345
346
346
347
p = strstr (cmdline , "bootconfig" );
347
348
if (!p || (p != cmdline && !isspace (* (p - 1 ))) ||
@@ -379,10 +380,11 @@ static void __init setup_boot_config(const char *cmdline)
379
380
memcpy (copy , data , size );
380
381
copy [size ] = '\0' ;
381
382
382
- if (xbc_init (copy ) < 0 )
383
+ ret = xbc_init (copy );
384
+ if (ret < 0 )
383
385
pr_err ("Failed to parse bootconfig\n" );
384
386
else {
385
- pr_info ("Load bootconfig: %d bytes\n" , size );
387
+ pr_info ("Load bootconfig: %d bytes %d nodes \n" , size , ret );
386
388
/* keys starting with "kernel." are passed via cmdline */
387
389
extra_command_line = xbc_make_cmdline ("kernel" );
388
390
/* Also, "init." keys are init arguments */
You can’t perform that action at this time.
0 commit comments