]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[main] Flip debug buffer conditional check
authorRay Strode <rstrode@redhat.com>
Fri, 18 Sep 2009 20:08:27 +0000 (16:08 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 20 Sep 2009 16:19:05 +0000 (12:19 -0400)
It was inverted so we were never creating a debug buffer
when plymouth:debug was put on the kernel command line.

src/main.c

index 00a6f24b46b5b07654c5471cec4e95deee637c67..610ee3002f0ac9d207fce5fe19e99902c1f5a82b 100644 (file)
@@ -1127,7 +1127,7 @@ check_verbosity (state_t *state)
           debug_buffer_path = path;
         }
 
-        if (debug_buffer != NULL)
+        if (debug_buffer == NULL)
           debug_buffer = ply_buffer_new ();
 
 #ifdef LOG_TO_DEBUG_FILE