#include <sys/types.h>
#include <sys/stat.h>
-#include "udev-helper.h"
+#include "parser.h"
#include "params.h"
#define buf_size 1024
root = value;
} else {
+ strcat(cmdline, " ");
*(value - 1) = '=';
strcat(cmdline, name);
}
cmdline = tmp;
}
- printf("kboot cmdline: %s", cmdline);
+ pb_log("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;
}
pos = get_param_pair(pos, &name, &value, '\n');
- printf("kboot param: '%s' = '%s'\n", name, value);
+ pb_log("kboot param: '%s' = '%s'\n", name, value);
if (name == NULL || param_is_ignored(name))
continue;