Fix space issue with kboot parser.
authorJeremy Kerr <jk@ozlabs.org>
Thu, 5 Apr 2007 05:33:58 +0000 (15:33 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 5 Apr 2007 05:33:58 +0000 (15:33 +1000)
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 <jk@ozlabs.org>
devices/kboot-parser.c

index 27f302565d885e94373a825acd47c4c27e59e895..4b997e7bca7098646c86b376b262fb3689f1fbe8 100644 (file)
@@ -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;
 }