]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] do_mounts.c printk fix
authorAlexander Viro <viro@math.psu.edu>
Sun, 5 May 2002 08:12:00 +0000 (01:12 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 5 May 2002 08:12:00 +0000 (01:12 -0700)
D'uh.  Linus, 2.5 also needs that one.

BTW, folks - whoever had submitted "fixes" replacing /dev/root.old with
/old/dev/root.old several lines above that one are welcome to think
about the reasons why their patches removed "failed" from boot log.

init/do_mounts.c

index d8a3646f45452fa8d036a613591e05c03d44e12d..29b870eb4809cd85c5002b714cd334551e9a17bb 100644 (file)
@@ -791,7 +791,7 @@ static void __init handle_initrd(void)
                        error = sys_ioctl(fd, BLKFLSBUF, 0);
                        close(fd);
                }
-               printk(error ? "okay\n" : "failed\n");
+               printk(!error ? "okay\n" : "failed\n");
        }
 #endif
 }