From eff968df2ac394b4ebbef0ad6f91d833ca0f22b6 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 5 Apr 2007 15:33:58 +1000 Subject: [PATCH] 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 --- devices/kboot-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2