diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-09-13 19:15:28 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-09-13 19:15:28 +0000 |
commit | 002afbbdf9419a32a754e988a0aac27d4a5c8ada (patch) | |
tree | 1b5e22a4fa280e7fb80e07e03c92456930879b83 /sbin | |
parent | 0d3b4962e7ec421bbb955d682e0f3108bc023c1e (diff) | |
download | FreeBSD-src-002afbbdf9419a32a754e988a0aac27d4a5c8ada.zip FreeBSD-src-002afbbdf9419a32a754e988a0aac27d4a5c8ada.tar.gz |
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.
MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/savecore/savecore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 33255c3..b61569e 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); } |