From: Ray Strode Date: Fri, 24 Oct 2008 17:06:49 +0000 (-0400) Subject: If started with debug, log it to boot.log X-Git-Tag: 0.6.0~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aec6642fd8ed62c24e293eddc62433cf8c4fa2b2;p=thirdparty%2Fplymouth.git If started with debug, log it to boot.log --- diff --git a/src/main.c b/src/main.c index 9fb75133..150e5156 100644 --- a/src/main.c +++ b/src/main.c @@ -587,9 +587,14 @@ check_verbosity (state_t *state) || (strstr (state->kernel_command_line, "plymouth:debug ") != NULL) || (strstr (state->kernel_command_line, " plymouth:debug") != NULL)) { + int fd; + ply_trace ("tracing should be enabled!"); if (!ply_is_tracing ()) ply_toggle_tracing (); + + fd = open ("/dev/console", O_RDWR); + ply_logger_set_output_fd (ply_logger_get_error_default (), fd); } else ply_trace ("tracing shouldn't be enabled!");