]> git.ozlabs.org Git - petitboot/commitdiff
Log new boot options
authorGeoff Levand <geoffrey.levand@am.sony.com>
Wed, 25 Mar 2009 12:35:55 +0000 (12:35 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 30 Mar 2009 09:20:10 +0000 (20:20 +1100)
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>
discover/parser-utils.c

index 4982112f403abcd142dd7ffe0d4e2cc6870811e0..a91c33a457760ce31ec57705fef78dfe5b890adf 100644 (file)
@@ -1,6 +1,7 @@
 
 #include <string.h>
 
+#include <log/log.h>
 #include <talloc/talloc.h>
 
 #include "pb-protocol/pb-protocol.h"
 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);
 }