Patchwork [09/18] petitboot: Log new boot options

login
register
mail settings
Submitter Geoff Levand
Date March 25, 2009, 10:35 p.m.
Message ID <20090325223547.425929632@am.sony.com>>
Download mbox | patch
Permalink /patch/25114/
State Accepted
Headers show

Comments

Geoff Levand - March 25, 2009, 10:35 p.m.
Add calls to log new devices in device_add_boot_option().

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
 discover/parser-utils.c |    9 +++++++++
 1 file changed, 9 insertions(+)

Patch

--- 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);
 }