summaryrefslogtreecommitdiff
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2003-05-21 16:17:38 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2003-05-21 16:17:38 +0000
commitbb33b718ba9fba3fae0c4b8479e7c9d40bbe7163 (patch)
tree2a9e0a2a32506ecd5af322a57bcd16c4fa2d9126 /sys/kern/subr_prf.c
parentbc588e98150fdd4d6609c4a79786374b6f7132a3 (diff)
Match vprintf prototype to userland and standards.
deraadt@ ok
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 67963e5e6cc..aab82260361 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.50 2003/05/20 20:47:12 jason Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.51 2003/05/21 16:17:37 art Exp $ */
/* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */
/*-
@@ -518,17 +518,18 @@ printf(const char *fmt, ...)
* va_list]
*/
-void
+int
vprintf(const char *fmt, va_list ap)
{
- int savintr;
+ int savintr, retval;
savintr = consintr; /* disable interrupts */
consintr = 0;
- kprintf(fmt, TOCONS | TOLOG, NULL, NULL, ap);
+ retval = kprintf(fmt, TOCONS | TOLOG, NULL, NULL, ap);
if (!panicstr)
logwakeup();
consintr = savintr; /* reenable interrupts */
+ return (retval);
}
__warn_references(sprintf,