main: show the correct trace message if a message is supressed

https://bugs.freedesktop.org/show_bug.cgi?id=50845
This commit is contained in:
Richard Hughes 2012-06-07 16:20:13 +01:00 committed by Ray Strode
parent e4a1a05e3c
commit 5437420a2e

View 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));
}