When using va_list, use vprintf, not printf.
This commit is contained in:
parent
ec1f68e931
commit
d0b8cdc6a9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: panic.c,v 1.3 1999/02/12 05:14:23 cjs Exp $ */
|
||||
/* $NetBSD: panic.c,v 1.4 2001/09/20 22:11:30 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -46,7 +46,7 @@ panic(const char *fmt,...)
|
|||
|
||||
va_start(ap, fmt);
|
||||
|
||||
printf(fmt, ap);
|
||||
vprintf(fmt, ap);
|
||||
printf("\n");
|
||||
va_end(ap);
|
||||
|
||||
|
|
Loading…
Reference in New Issue