]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: show the correct trace message if a message is supressed
authorRichard Hughes <richard@hughsie.com>
Thu, 7 Jun 2012 15:20:13 +0000 (16:20 +0100)
committerRay Strode <rstrode@redhat.com>
Fri, 8 Jun 2012 22:12:14 +0000 (18:12 -0400)
https://bugs.freedesktop.org/show_bug.cgi?id=50845

src/main.c

index 073908850df39b2c1f84bcf86a30baf92d1b178c..23ddaefea94bbb7f6dbb53202d92bcf2aafbe9ae 100644 (file)
@@ -451,9 +451,13 @@ static void
 on_display_message (state_t       *state,
                     const char    *message)
 {
-  ply_trace ("displaying message %s", message);
   if (state->boot_splash != NULL)
-    ply_boot_splash_display_message (state->boot_splash, message);
+    {
+        ply_trace ("displaying message %s", message);
+        ply_boot_splash_display_message (state->boot_splash, message);
+    }
+  else
+    ply_trace ("not displaying message %s as no splash", message);
   ply_list_append_data (state->messages, strdup(message));
 }