elementary: add debugging information to quicklaunch binary.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 7 Nov 2017 23:50:13 +0000 (15:50 -0800)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 8 Nov 2017 00:08:39 +0000 (16:08 -0800)
src/bin/elementary/quicklaunch.c

index 765806e..b7fec56 100644 (file)
@@ -109,6 +109,7 @@ handle_run(int fd, unsigned long bytes)
         CRI("no bytes to quicklaunch");
         return;
      }
+   DBG("Starting building up process.");
    _elm_startup_time = ecore_time_unix_get();
 
    buf = alloca(bytes);
@@ -157,9 +158,15 @@ handle_run(int fd, unsigned long bytes)
           }
      }
 #endif
+
+   INF("Requested to run '%s' with %i arguments and %i environment.",
+           argv[0], argc - 1, envnum);
    // Try new form before trying old form
    if (!efl_quicklaunch_prepare(argc, argv, cwd))
-     elm_quicklaunch_prepare(argc, argv, cwd);
+     {
+        WRN("Failed to prepare with new EFL_MAIN macro, switching to legacy.");
+        elm_quicklaunch_prepare(argc, argv, cwd);
+     }
 
    elm_quicklaunch_fork(argc, argv, cwd, post_fork, NULL);
    elm_quicklaunch_cleanup();
@@ -329,6 +336,8 @@ main(int argc, char **argv)
 
         len = sizeof(struct sockaddr_un);
         fd = accept(sock, (struct sockaddr *)&client, &len);
+
+        DBG("Accepting connection.");
         elm_quicklaunch_sub_init(argc, argv);
         // don't seed since we are doing this AFTER launch request
         // elm_quicklaunch_seed();