From 1fe2d3891d45f85371f8b1c30dbd0086bc0ad9ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Engel?= Date: Wed, 20 Aug 2003 21:15:42 -0700 Subject: [PATCH] [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. --- fs/cramfs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 5d94a4324d9a5..1789afd1298d5 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -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; } } -- 2.53.0