diff options
author | gibbs <gibbs@FreeBSD.org> | 1996-01-29 03:18:05 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1996-01-29 03:18:05 +0000 |
commit | 6757073e1cbbf8550ab7b9a86c80a651de07d833 (patch) | |
tree | 6391b233bd821bb9c3bbd9a5f0e0593c2085af2a /sys/kern/subr_prf.c | |
parent | 2e4a124f9ae278260bdb4283512b7fc2213ab4f5 (diff) | |
download | FreeBSD-src-6757073e1cbbf8550ab7b9a86c80a651de07d833.zip FreeBSD-src-6757073e1cbbf8550ab7b9a86c80a651de07d833.tar.gz |
Kernel printf now returns int.
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 d02a707..7f0458d 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.27 1996/01/24 20:56:20 phk Exp $ + * $Id: subr_prf.c,v 1.28 1996/01/25 00:17:22 bde Exp $ */ #include "opt_ddb.h" @@ -287,23 +287,25 @@ addlog(const char *fmt, ...) logwakeup(); } -void +int printf(const char *fmt, ...) { va_list ap; register int savintr; struct putchar_arg pca; + int retval; savintr = consintr; /* disable interrupts */ consintr = 0; va_start(ap, fmt); pca.tty = NULL; pca.flags = TOCONS | TOLOG; - kvprintf(fmt, putchar, &pca, 10, ap); + retval = kvprintf(fmt, putchar, &pca, 10, ap); va_end(ap); if (!panicstr) logwakeup(); consintr = savintr; /* reenable interrupts */ + return retval; } void |