From: Richard Hughes Date: Thu, 7 Jun 2012 15:20:13 +0000 (+0100) Subject: main: show the correct trace message if a message is supressed X-Git-Tag: 0.8.6~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5437420a2e63cc509a919e4585bd2f010c512c3b;p=thirdparty%2Fplymouth.git main: show the correct trace message if a message is supressed https://bugs.freedesktop.org/show_bug.cgi?id=50845 --- diff --git a/src/main.c b/src/main.c index 07390885..23ddaefe 100644 --- a/src/main.c +++ b/src/main.c @@ -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)); }