Commit 1fe2d389 authored by Jörn Engel's avatar Jörn Engel Committed by Linus Torvalds

[PATCH] keep cramfs silent, when it ought to be

This removes the pointless cramfs message when booting with cramfs
compiled in but not as the root filesystem.
parent a527cfc1
...@@ -218,6 +218,7 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -218,6 +218,7 @@ static int cramfs_fill_super(struct super_block *sb, void *data, int silent)
/* check at 512 byte offset */ /* check at 512 byte offset */
memcpy(&super, cramfs_read(sb, 512, sizeof(super)), sizeof(super)); memcpy(&super, cramfs_read(sb, 512, sizeof(super)), sizeof(super));
if (super.magic != CRAMFS_MAGIC) { if (super.magic != CRAMFS_MAGIC) {
if (!silent)
printk(KERN_ERR "cramfs: wrong magic\n"); printk(KERN_ERR "cramfs: wrong magic\n");
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment