]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: add more debugging at quit time
authorRay Strode <rstrode@redhat.com>
Mon, 27 Jan 2014 17:24:20 +0000 (12:24 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 27 Jan 2014 17:24:20 +0000 (12:24 -0500)
There's a distinct lack of tracing statements around
the quit path, so flesh it out a little.

src/main.c

index 43e3a0a50c5f271a511fced6998f52f3f1ff7bd7..7dbe47cf0b33b84f75c96666fb848cb2d08408fc 100644 (file)
@@ -1283,8 +1283,11 @@ on_quit (state_t       *state,
          bool           retain_splash,
          ply_trigger_t *quit_trigger)
 {
+  ply_trace ("quitting (retain splash: %s)", retain_splash? "true" : "false");
+
   if (state->quit_trigger != NULL)
     {
+      ply_trace ("quit trigger already pending, so chaining to it");
       ply_trigger_add_handler (state->quit_trigger,
                                (ply_trigger_handler_t)
                                ply_trigger_pull,
@@ -1294,10 +1297,15 @@ on_quit (state_t       *state,
 
   if (state->system_initialized)
     {
+      ply_trace ("system initialized so saving boot-duration file");
       ply_create_directory (PLYMOUTH_TIME_DIRECTORY);
       ply_progress_save_cache (state->progress,
                                get_cache_file_for_mode (state->mode));
     }
+  else
+    {
+      ply_trace ("system not initialized so skipping saving boot-duration file");
+    }
   state->quit_trigger = quit_trigger;
   state->should_retain_splash = retain_splash;
 
@@ -1305,7 +1313,7 @@ on_quit (state_t       *state,
   tell_systemd_to_stop_printing_details (state);
 #endif
 
-  ply_trace ("time to quit, closing log");
+  ply_trace ("closing log");
   if (state->session != NULL)
     ply_terminal_session_close_log (state->session);