summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-03-25 12:35:55 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-30 20:20:10 +1100
commitff7fa9c37c952d0df20ba73f3109182c01347f2e (patch)
treeb9b6fb413f6a7462bab3489e14151536682f93da /discover
parentde9059ff7915589c2033129395dbe724b727e224 (diff)
downloadtalos-petitboot-ff7fa9c37c952d0df20ba73f3109182c01347f2e.tar.gz
talos-petitboot-ff7fa9c37c952d0df20ba73f3109182c01347f2e.zip
Log new boot options
Add calls to log new devices in device_add_boot_option(). Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/parser-utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/discover/parser-utils.c b/discover/parser-utils.c
index 4982112..a91c33a 100644
--- a/discover/parser-utils.c
+++ b/discover/parser-utils.c
@@ -1,6 +1,7 @@
#include <string.h>
+#include <log/log.h>
#include <talloc/talloc.h>
#include "pb-protocol/pb-protocol.h"
@@ -11,6 +12,14 @@
void device_add_boot_option(struct device *device,
struct boot_option *boot_option)
{
+ pb_log("%s: %s\n", __func__, device->id);
+ pb_log(" id '%s'\n", boot_option->id);
+ pb_log(" name '%s'\n", boot_option->name);
+ pb_log(" descr '%s'\n", boot_option->description);
+ pb_log(" icon '%s'\n", boot_option->icon_file);
+ pb_log(" image '%s'\n", boot_option->boot_image_file);
+ pb_log(" initrd '%s'\n", boot_option->initrd_file);
+ pb_log(" args '%s'\n", boot_option->boot_args);
list_add(&device->boot_options, &boot_option->list);
talloc_steal(device, boot_option);
}
OpenPOWER on IntegriCloud