diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-18 18:36:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-12-18 18:36:06 +0000 |
commit | 6f3bc04a7af39ba09492555e576d3a0bb2ccf400 (patch) | |
tree | 8d3d4cf56082044dd9154727b5d0f5d356147886 /sys | |
parent | 6e0d72bc1538aff01f649cd98975f40583bdf830 (diff) |
our panic() can take stdarg arguments
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/dsdt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index 92c079535ae..9ca87a9314c 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.68 2006/12/12 16:59:52 tom Exp $ */ +/* $OpenBSD: dsdt.c,v 1.69 2006/12/18 18:36:05 deraadt Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -284,7 +284,6 @@ struct aml_scope *aml_lastscope; void _aml_die(const char *fn, int line, const char *fmt, ...) { struct aml_scope *root; - char tmpbuf[256]; va_list ap; int idx; @@ -308,8 +307,7 @@ void _aml_die(const char *fn, int line, const char *fmt, ...) } /* XXX: don't panic */ - snprintf(tmpbuf,sizeof(tmpbuf),"aml_die %s:%d ", fn, line); - panic(tmpbuf); + panic("aml_die %s:%d", fn, line); } #define aml_die(x...) _aml_die(__FUNCTION__,__LINE__,x) |