[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v2 03/10] lib/ukdebug: Move 'Calling main...' message before calling main



Move the 'Calling main' info message right before actually calling
main.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
---
 lib/ukboot/boot.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/lib/ukboot/boot.c b/lib/ukboot/boot.c
index 1aaa683..e778bd1 100644
--- a/lib/ukboot/boot.c
+++ b/lib/ukboot/boot.c
@@ -79,14 +79,6 @@ static void main_thread_func(void *arg)
        int ret;
        struct thread_main_arg *tma = arg;
 
-       uk_printd(DLVL_INFO, "Calling main(%d, [", tma->argc);
-       for (i = 0; i < tma->argc; ++i) {
-               uk_printd(DLVL_INFO, "'%s'", tma->argv[i]);
-               if ((i + 1) < tma->argc)
-                       uk_printd(DLVL_INFO, ", ");
-       }
-       uk_printd(DLVL_INFO, "])\n");
-
 #ifdef CONFIG_LIBUKBUS
        uk_printd(DLVL_INFO, "Initialize bus handlers...\n");
        uk_bus_init_all(uk_alloc_get_default());
@@ -113,7 +105,14 @@ static void main_thread_func(void *arg)
               STRINGIFY(UK_CODENAME) " " STRINGIFY(UK_FULLVERSION));
 #endif
 
-       /* call main */
+       uk_printd(DLVL_INFO, "Calling main(%d, [", tma->argc);
+       for (i = 0; i < tma->argc; ++i) {
+               uk_printd(DLVL_INFO, "'%s'", tma->argv[i]);
+               if ((i + 1) < tma->argc)
+                       uk_printd(DLVL_INFO, ", ");
+       }
+       uk_printd(DLVL_INFO, "])\n");
+
        ret = main(tma->argc, tma->argv);
        uk_printd(DLVL_INFO, "main returned %d, halting system\n", ret);
        ret = (ret != 0) ? UKPLAT_CRASH : UKPLAT_HALT;
-- 
2.7.4


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.