*/
if (state->boot_splash == NULL)
{
+ ply_trace ("no splash loaded, replying immediately with no password");
ply_trigger_pull (answer, NULL);
return;
}
entry_trigger->type = PLY_ENTRY_TRIGGER_TYPE_PASSWORD;
entry_trigger->prompt = prompt;
entry_trigger->trigger = answer;
+ ply_trace ("queuing password request with boot splash");
ply_list_append_data (state->entry_triggers, entry_trigger);
update_display (state);
}
entry_trigger->type = PLY_ENTRY_TRIGGER_TYPE_QUESTION;
entry_trigger->prompt = prompt;
entry_trigger->trigger = answer;
+ ply_trace ("queuing question with boot splash");
ply_list_append_data (state->entry_triggers, entry_trigger);
update_display (state);
}
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_keystroke_watch_t *keystroke_trigger =
calloc (1, sizeof (ply_keystroke_watch_t));
+ ply_trace ("watching for keystroke");
keystroke_trigger->keys = keys;
keystroke_trigger->trigger = trigger;
ply_list_append_data (state->keystroke_triggers, keystroke_trigger);
const char *keys)
{
ply_list_node_t *node;
-
+
+ ply_trace ("ignoring for keystroke");
+
for (node = ply_list_get_first_node (state->keystroke_triggers); node;
node = ply_list_get_next_node (state->keystroke_triggers, node))
{
static void
on_progress_pause (state_t *state)
{
+ ply_trace ("pausing progress");
ply_progress_pause (state->progress);
}
static void
on_progress_unpause (state_t *state)
{
+ ply_trace ("unpausing progress");
ply_progress_unpause (state->progress);
}
break;
}
+ ply_trace ("returning cache file '%s'", filename);
return filename;
}
break;
}
+ ply_trace ("returning log file '%s'", filename);
return filename;
}
break;
}
+ ply_trace ("returning spool file '%s'", filename);
return filename;
}
const char *logfile;
if (!state->system_initialized)
- return;
+ {
+ ply_trace ("not preparing logging yet, system not initialized");
+ return;
+ }
if (state->session == NULL)
- return;
+ {
+ ply_trace ("not preparing logging, no session");
+ return;
+ }
logfile = get_log_file_for_mode (state->mode);
if (logfile != NULL)
{
+ ply_trace ("opening log '%s'", logfile);
ply_terminal_session_open_log (state->session, logfile);
if (state->number_of_errors > 0)
remove_displays_and_keyboard (state_t *state)
{
ply_list_node_t *node;
+ ply_trace ("removing displays and keyboard");
node = ply_list_get_first_node (state->pixel_displays);
while (node != NULL)
ply_list_node_t *next_node;
ply_pixel_display_t *display;
+ ply_trace ("removing pixel display");
next_node = ply_list_get_next_node (state->pixel_displays, node);
display = ply_list_node_get_data (node);
ply_pixel_display_free (display);
ply_list_node_t *next_node;
ply_text_display_t *display;
+ ply_trace ("removing text display");
next_node = ply_list_get_next_node (state->text_displays, node);
display = ply_list_node_get_data (node);
ply_text_display_free (display);
if (state->keyboard != NULL)
{
+ ply_trace ("removing keyboard");
ply_keyboard_stop_watching_for_input (state->keyboard);
ply_keyboard_free (state->keyboard);
state->keyboard = NULL;
bool has_display;
if (state->is_inactive)
- return;
+ {
+ ply_trace ("show splash called while inactive");
+ return;
+ }
if (plymouth_should_ignore_show_splash_calls (state))
{
+ ply_trace ("show splash called while ignoring show splash calls");
dump_details_and_quit_splash (state);
return;
}
char *console_key;
char *remaining_command_line;
- ply_trace ("checking if splash screen should be disabled");
+ ply_trace ("checking for consoles%s",
+ should_add_displays? " and adding displays": "");
remaining_command_line = state->kernel_command_line;
while ((console_key = strstr (remaining_command_line, " console=")) != NULL)
add_display_and_keyboard_for_terminal (state, state->kernel_console_tty);
}
+ ply_trace ("There are currently %d text displays",
+ ply_list_get_length (state->text_displays));
if (should_add_displays && ply_list_get_length (state->text_displays) == 0)
add_default_displays_and_keyboard (state);
}