you need to include ddb/db_output.h so you know how to call db_printf
authordlg <dlg@openbsd.org>
Thu, 25 Jun 2015 00:58:49 +0000 (00:58 +0000)
committerdlg <dlg@openbsd.org>
Thu, 25 Jun 2015 00:58:49 +0000 (00:58 +0000)
inside MP_LOCKDEBUG.

sys/arch/amd64/amd64/lock_machdep.c

index a8e9946..5d15d2b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: lock_machdep.c,v 1.8 2015/03/14 03:38:46 jsg Exp $    */
+/*     $OpenBSD: lock_machdep.c,v 1.9 2015/06/25 00:58:49 dlg Exp $    */
 
 /*
  * Copyright (c) 2007 Artur Grabowski <art@openbsd.org>
@@ -24,6 +24,8 @@
 #include <machine/lock.h>
 #include <machine/cpufunc.h>
 
+#include <ddb/db_output.h>
+
 void
 __mp_lock_init(struct __mp_lock *mpl)
 {