]> git.ozlabs.org Git - petitboot/commitdiff
discover: Add some debug print messages
authorGeoff Levand <geoff@infradead.org>
Thu, 2 Aug 2018 17:29:34 +0000 (17:29 +0000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 7 Aug 2018 01:30:36 +0000 (11:30 +1000)
To aid in debugging print some additinal discover messages
to the log.

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/device-handler.c
discover/platform.c

index 1299c33b7bb5c517dd06c1a6c1bee23bd10816a2..9c050293df98cf446a44aa560ad3941dbfa4aa89 100644 (file)
@@ -522,6 +522,7 @@ void device_handler_remove(struct device_handler *handler,
 void device_handler_status(struct device_handler *handler,
                struct status *status)
 {
 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);
 }
 
        discover_server_notify_boot_status(handler->server, status);
 }
 
index cc6306f035b96e622fb40026b780925279ac78fa..e69c6f6b5bebe9958a31c80c7f27727ae0cf1191 100644 (file)
@@ -166,6 +166,7 @@ int platform_init(void *ctx)
        platform_ctx = talloc_new(ctx);
 
        for (p = &__start_platforms; p < &__stop_platforms; p++) {
        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;
                if (!(*p)->probe(*p, platform_ctx))
                        continue;
                platform = *p;