summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpidebug.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-12-12 21:00:09 +0000
committerguenther <guenther@openbsd.org>2013-12-12 21:00:09 +0000
commit0a3318231f850d75493ed025135a4968a8dc516b (patch)
tree64a975fe7648c6192e127c3b9e18152d25074160 /sys/dev/acpi/acpidebug.c
parentprintf(variable) --> printf("%s", variable) (diff)
downloadwireguard-openbsd-0a3318231f850d75493ed025135a4968a8dc516b.tar.xz
wireguard-openbsd-0a3318231f850d75493ed025135a4968a8dc516b.zip
Add db_vprintf(), and then use it in ACPI's db_disprint() instead of
formatting into a local buffer. ok miod@
Diffstat (limited to 'sys/dev/acpi/acpidebug.c')
-rw-r--r--sys/dev/acpi/acpidebug.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/acpi/acpidebug.c b/sys/dev/acpi/acpidebug.c
index b728fc35553..0177ceab7f2 100644
--- a/sys/dev/acpi/acpidebug.c
+++ b/sys/dev/acpi/acpidebug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpidebug.c,v 1.28 2013/11/18 23:44:57 deraadt Exp $ */
+/* $OpenBSD: acpidebug.c,v 1.29 2013/12/12 21:00:09 guenther Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@openbsd.org>
*
@@ -298,13 +298,10 @@ db_acpi_showval(db_expr_t addr, int haddr, db_expr_t count, char *modif)
void db_disprint(void *arg, const char *fmt, ...)
{
va_list ap;
- char stre[64];
va_start(ap,fmt);
- vsnprintf(stre, sizeof(stre), fmt, ap);
+ db_vprintf(fmt, ap);
va_end(ap);
-
- db_printf("%s", stre);
}
void