]> git.hungrycats.org Git - linux/commitdiff
[PATCH] keep cramfs silent, when it ought to be
authorJörn Engel <joern@infradead.org>
Thu, 21 Aug 2003 04:15:42 +0000 (21:15 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 21 Aug 2003 04:15:42 +0000 (21:15 -0700)
This removes the pointless cramfs message when booting with cramfs
compiled in but not as the root filesystem.

fs/cramfs/inode.c

index 5d94a4324d9a518d5f126fba035be4c7d17b217f..1789afd1298d5c879f4f3cb8b88d083f1516843e 100644 (file)
@@ -218,7 +218,8 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
                /* check at 512 byte offset */
                memcpy(&super, cramfs_read(sb, 512, sizeof(super)), sizeof(super));
                if (super.magic != CRAMFS_MAGIC) {
-                       printk(KERN_ERR "cramfs: wrong magic\n");
+                       if (!silent)
+                               printk(KERN_ERR "cramfs: wrong magic\n");
                        goto out;
                }
        }