Skip to contentSkip to conversation

keep cramfs silent, when it ought to be

PATCH New Jörn Engel 1 participant 1 message Aug 21, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 keep cramfs silent, when it ought to be

Hi Linus!

This removes the pointless cramfs message when booting with cramfs compiled in but not as the root filesystem.

Jörn

Signature · 16 lines
They laughed at Galileo.  They laughed at Copernicus.  They laughed at
Columbus. But remember, they also laughed at Bozo the Clown.
-- unknown

--- linux-2.5.71/fs/cramfs/inode.c~cramfs_message	2003-06-16 11:05:04.000000000 +0200
+++ linux-2.5.71/fs/cramfs/inode.c	2003-06-16 11:05:56.000000000 +0200
@@ -218,7 +218,8 @@
 		/* 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;
 		}
 	}