patch-2.3.41 linux/fs/partitions/sgi.c

Next file: linux/fs/partitions/sun.c
Previous file: linux/fs/partitions/check.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/fs/partitions/sgi.c linux/fs/partitions/sgi.c
@@ -44,15 +44,15 @@
 	struct sgi_partition *p;
 
 	if(!(bh = bread(dev, 0, get_ptable_blocksize(dev)))) {
-		printk("Dev %s: unable to read partition table\n", kdevname(dev));
+		printk(KERN_WARNING "Dev %s: unable to read partition table\n", kdevname(dev));
 		return -1;
 	}
 	label = (struct sgi_disklabel *) bh->b_data;
 	p = &label->partitions[0];
 	magic = label->magic_mushroom;
 	if(be32_to_cpu(magic) != SGI_LABEL_MAGIC) {
-		printk("Dev %s SGI disklabel: bad magic %08x\n",
-		       kdevname(dev), magic);
+		/*printk("Dev %s SGI disklabel: bad magic %08x\n",
+		       kdevname(dev), magic);*/
 		brelse(bh);
 		return 0;
 	}
@@ -62,7 +62,7 @@
 		csum += be32_to_cpu(cs);
 	}
 	if(csum) {
-		printk("Dev %s SGI disklabel: csum bad, label corrupted\n",
+		printk(KERN_WARNING "Dev %s SGI disklabel: csum bad, label corrupted\n",
 		       kdevname(dev));
 		brelse(bh);
 		return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)