summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-12-18 18:36:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-12-18 18:36:06 +0000
commit6f3bc04a7af39ba09492555e576d3a0bb2ccf400 (patch)
tree8d3d4cf56082044dd9154727b5d0f5d356147886 /sys/dev/acpi
parent6e0d72bc1538aff01f649cd98975f40583bdf830 (diff)
our panic() can take stdarg arguments
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/dsdt.c6
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)