From 390cc7eacc30b7f9d31f0e912541ea679a6672d7 Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 20 Sep 2005 13:29:37 +0000 Subject: [PATCH] Merge savecore.c:1.76 from HEAD to RELENG_6: Don't consider being unable to open the bounds file worthy of printing at LOG_WARNING by default; instead, consider it something to be printed to the tty when 'verbose' mode is set. This avoids printing out extra lines at every boot on a system with crash dumps enabled, but that has not yet had to generate a crashdump. Approved by: re (kensmith) --- sbin/savecore/savecore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 33255c356777..b61569e63d51 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -144,7 +144,8 @@ getbounds(void) { ret = 0; if ((fp = fopen("bounds", "r")) == NULL) { - syslog(LOG_WARNING, "unable to open bounds file, using 0"); + if (verbose) + printf("unable to open bounds file, using 0\n"); return (ret); }