diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-08-09 15:10:21 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2002-08-09 15:10:21 +0000 |
commit | 4c54f18f04b4867809076b446cce65277de3ab3f (patch) | |
tree | c9e2a5a06b17850f58f5f1886a06ec9d63a8a894 /sys/dev/raidframe/rf_layout.c | |
parent | 7ca1798c557106ef6290ba8913d2ce6fc3e94475 (diff) |
Remove those noisy informational messages from dmesg.
Use the option RAIDDEBUG to get these.
Theo, thanks for suggesting.
Diffstat (limited to 'sys/dev/raidframe/rf_layout.c')
-rw-r--r-- | sys/dev/raidframe/rf_layout.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/dev/raidframe/rf_layout.c b/sys/dev/raidframe/rf_layout.c index de80c0096b6..bc83f0f7ea5 100644 --- a/sys/dev/raidframe/rf_layout.c +++ b/sys/dev/raidframe/rf_layout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rf_layout.c,v 1.4 2000/08/08 16:07:42 peter Exp $ */ +/* $OpenBSD: rf_layout.c,v 1.5 2002/08/09 15:10:20 tdeval Exp $ */ /* $NetBSD: rf_layout.c,v 1.6 2000/04/17 19:35:12 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. @@ -476,17 +476,18 @@ rf_ConfigureLayout( raidPtr->headSepLimit = rf_GetDefaultHeadSepLimit(raidPtr); } - printf("RAIDFRAME: Configure (%s): total number of sectors is %lu (%lu MB)\n", - layoutPtr->map->configName, - (unsigned long) raidPtr->totalSectors, - (unsigned long) (raidPtr->totalSectors / 1024 * (1 << raidPtr->logBytesPerSector) / 1024)); +#ifdef RAIDDEBUG if (raidPtr->headSepLimit >= 0) { - printf("RAIDFRAME(%s): Using %ld floating recon bufs with head sep limit %ld\n", - layoutPtr->map->configName, (long) raidPtr->numFloatingReconBufs, (long) raidPtr->headSepLimit); + printf("RAIDFRAME(%s): Using %ld floating recon bufs" + " with head sep limit %ld\n", layoutPtr->map->configName, + (long) raidPtr->numFloatingReconBufs, + (long) raidPtr->headSepLimit); } else { - printf("RAIDFRAME(%s): Using %ld floating recon bufs with no head sep limit\n", - layoutPtr->map->configName, (long) raidPtr->numFloatingReconBufs); + printf("RAIDFRAME(%s): Using %ld floating recon bufs" + " with no head sep limit\n", layoutPtr->map->configName, + (long) raidPtr->numFloatingReconBufs); } +#endif /* RAIDDEBUG */ return (0); } |