From: Jeremy Kerr Date: Thu, 5 Apr 2007 05:33:58 +0000 (+1000) Subject: Fix space issue with kboot parser. X-Git-Tag: v0.0.1~15 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=eff968df2ac394b4ebbef0ad6f91d833ca0f22b6;ds=sidebyside Fix space issue with kboot parser. We weren't adding spaces around foo=bar kernel command-line parameters. Also, use the short name for the kernel path in the (debug) description field. Signed-off-by: Jeremy Kerr --- diff --git a/devices/kboot-parser.c b/devices/kboot-parser.c index 27f3025..4b997e7 100644 --- a/devices/kboot-parser.c +++ b/devices/kboot-parser.c @@ -121,6 +121,7 @@ static int parse_option(struct boot_option *opt, char *config) root = value; } else { + strcat(cmdline, " "); *(value - 1) = '='; strcat(cmdline, name); } @@ -149,7 +150,7 @@ static int parse_option(struct boot_option *opt, char *config) printf("kboot cmdline: %s", cmdline); opt->boot_args = cmdline; - asprintf(&opt->description, "%s %s", opt->boot_image_file, cmdline); + asprintf(&opt->description, "%s %s", config, cmdline); return 1; }