]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
client: support plymouth.debug on kernel command line
authorRay Strode <rstrode@redhat.com>
Fri, 7 Feb 2014 21:40:07 +0000 (16:40 -0500)
committerRay Strode <rstrode@redhat.com>
Fri, 7 Feb 2014 21:40:07 +0000 (16:40 -0500)
We used to use plymouth:debug to enable debugging in the
plymouth daemon, and changed it to plymouth.debug to be more
consistent with other users of the kernel command line.

We neglected to update the client to support the new format
though.  This commit does that.

src/client/plymouth.c

index e00208d171b59c184307b6135561bfd0e486686b..b22e90cf7b193f15442908e3a66b3d353f2dd5c1 100644 (file)
@@ -1173,7 +1173,8 @@ main (int    argc,
 
   if (get_kernel_command_line (&state))
     {
-      if (strstr (state.kernel_command_line, "plymouth:debug") != NULL
+      if ((strstr (state.kernel_command_line, "plymouth.debug") != NULL ||
+           strstr (state.kernel_command_line, "plymouth:debug") != NULL)
           && !ply_is_tracing ())
         ply_toggle_tracing ();
     }