]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
libply: add tracing statements to progress saving
authorRay Strode <rstrode@redhat.com>
Mon, 27 Jan 2014 17:26:48 +0000 (12:26 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 27 Jan 2014 17:27:05 +0000 (12:27 -0500)
We should at least report whether saving worked or failed.

src/libply/ply-progress.c

index a88aa28b8292c661c1bda1bf17bd86ebde8a7138..4a16556de1973456fe87a4c7fa8c131541719850 100644 (file)
@@ -216,9 +216,14 @@ ply_progress_save_cache (ply_progress_t* progress,
   ply_list_node_t *node;
   double cur_time = ply_progress_get_time(progress);
 
+  ply_trace ("saving progress cache to %s", filename);
+
   fp = fopen (filename,"w");
   if (fp == NULL)
-    return;
+    {
+      ply_trace ("failed to save cache: %m");
+      return;
+    }
 
   node = ply_list_get_first_node (progress->current_message_list);