[v1,07/10] discover: Add some debug print messages

Message ID f1c4c0f795c6d0036765cafe2cb92870825265c8.1531170563.git.geoff@infradead.org
State Superseded
Headers show
Series
  • [v1,01/10] docker: Add libfdt-dev
Related show

Commit Message

Geoff Levand July 9, 2018, 9:21 p.m.
To aid in debugging print some additinal discover messages
to the log.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 discover/device-handler.c | 1 +
 discover/platform.c       | 1 +
 2 files changed, 2 insertions(+)

Patch

diff --git a/discover/device-handler.c b/discover/device-handler.c
index 7ad7440..75974fb 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -520,6 +520,7 @@  void device_handler_remove(struct device_handler *handler,
 void device_handler_status(struct device_handler *handler,
 		struct status *status)
 {
+	pb_debug("%s: %s\n", __func__, status->message);
 	discover_server_notify_boot_status(handler->server, status);
 }
 
diff --git a/discover/platform.c b/discover/platform.c
index cc6306f..e69c6f6 100644
--- a/discover/platform.c
+++ b/discover/platform.c
@@ -166,6 +166,7 @@  int platform_init(void *ctx)
 	platform_ctx = talloc_new(ctx);
 
 	for (p = &__start_platforms; p < &__stop_platforms; p++) {
+		pb_debug("%s: Try platform %s\n", __func__, (*p)->name);
 		if (!(*p)->probe(*p, platform_ctx))
 			continue;
 		platform = *p;