diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1996-05-08 04:29:08 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1996-05-08 04:29:08 +0000 |
commit | c79cc630ede15ddb8641deef1f5256d6296ae31b (patch) | |
tree | 273ffb1ff648a1d501fa53a37f56803c19399e9f /sys/kern/subr_prf.c | |
parent | 9f795376b3921c04e5abe4bc29b1905e78ae2db2 (diff) | |
download | FreeBSD-src-c79cc630ede15ddb8641deef1f5256d6296ae31b.zip FreeBSD-src-c79cc630ede15ddb8641deef1f5256d6296ae31b.tar.gz |
Clean up various compiler warnings. Most (if not all) were benign
Reviewed by: bde
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index c718a65..7968bb0 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 - * $Id: subr_prf.c,v 1.34 1996/03/25 17:06:34 jkh Exp $ + * $Id: subr_prf.c,v 1.35 1996/05/02 09:34:45 phk Exp $ */ #include "opt_ddb.h" @@ -267,15 +267,16 @@ logpri(level) msglogchar('>', NULL); } -void +int addlog(const char *fmt, ...) { register int s; va_list ap; + int retval; s = splhigh(); va_start(ap, fmt); - kvprintf(fmt, msglogchar, NULL, 10, ap); + retval = kvprintf(fmt, msglogchar, NULL, 10, ap); splx(s); va_end(ap); if (!log_open) { @@ -287,6 +288,7 @@ addlog(const char *fmt, ...) va_end(ap); } logwakeup(); + return (retval); } int |