Skip to contentSkip to conversation

silence some superfluous boot messages

PATCH In review [email protected] 2 participants 2 messages Apr 20, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 silence some superfluous boot messages

I suppose these can be removed altogether.
For now #if 0 ... #endif.

drivers/block/ll_rw_blk.c +3 -3
diff -u --recursive --new-file -X /linux/dontdiff a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
@@ -1867,7 +1867,7 @@
  * generic_make_request() does not return any status.  The
  * success/failure status of the request, along with notification of
  * completion, is delivered asynchronously through the bio->bi_end_io
- * function described (one day) else where.
+ * function described (one day) elsewhere.
  *
  * The caller of generic_make_request must make sure that bi_io_vec
  * are set to describe the memory buffer, and that bi_dev and bi_sector are
@@ -2204,14 +2204,14 @@
 	batch_requests = queue_nr_requests / 8;
 	if (batch_requests > 8)
 		batch_requests = 8;
-
+#if 0
 	printk("block request queues:\n");
 	printk(" %d requests per read queue\n", queue_nr_requests);
 	printk(" %d requests per write queue\n", queue_nr_requests);
 	printk(" %d requests per batch\n", batch_requests);
 	printk(" enter congestion at %d\n", queue_congestion_on_threshold());
 	printk(" exit congestion at %d\n", queue_congestion_off_threshold());
-
+#endif
 	blk_max_low_pfn = max_low_pfn;
 	blk_max_pfn = max_pfn;
 
drivers/ide/ide-disk.c +4 -1
diff -u --recursive --new-file -X /linux/dontdiff a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
@@ -1079,8 +1079,11 @@
 static inline int idedisk_supports_host_protected_area(ide_drive_t *drive)
 {
 	int flag = (drive->id->cfs_enable_1 & 0x0400) ? 1 : 0;
+#if 0
 	if (flag)
-		printk(KERN_INFO "%s: host protected area => %d\n", drive->name, flag);
+		printk(KERN_INFO "%s: host protected area => %d\n",
+		       drive->name, flag);
+#endif
 	return flag;
 }
 
fs/bio.c +3 -3
diff -u --recursive --new-file -X /linux/dontdiff a/fs/bio.c b/fs/bio.c
@@ -743,10 +743,10 @@
 					mempool_free_slab, bp->slab);
 		if (!bp->pool)
 			panic("biovec: can't init mempool\n");
-
+#if 0
 		printk("biovec pool[%d]: %3d bvecs: %3d entries (%d bytes)\n",
-						i, bp->nr_vecs, pool_entries,
-						size);
+		       i, bp->nr_vecs, pool_entries, size);
+#endif
 	}
 }
 
#1 lore raw
Quoted 2 lines · [email protected] wrote:

I suppose these can be removed altogether.
For now #if 0 ... #endif.

would it not be preferable to mark these as KERN_DEBUG instead?

Sure they will still show up in dmesg, but that gives the code authors opportunity to themselves adjust the messages, mark them as DPRINTK(), or #if-0 them out themselves.

Jeff