summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-07-19 17:47:23 +0000
committerrwatson <rwatson@FreeBSD.org>2008-07-19 17:47:23 +0000
commit2df3fcd0c620fabe5836f49d8c04f9822a535ae6 (patch)
tree623b728286224a1c17371301e48dcab988bf34c2 /sys/kern/subr_witness.c
parentd5f479c4b37e481a13dd61a673f66717f28e5da5 (diff)
downloadFreeBSD-src-2df3fcd0c620fabe5836f49d8c04f9822a535ae6.zip
FreeBSD-src-2df3fcd0c620fabe5836f49d8c04f9822a535ae6.tar.gz
witness_addgraph() is required even if DDB isn't compiled into the kernel,
so exclude it from #ifdef DDB. Submitted by: attilio
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 1d9dfcb..e8030ba 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -816,6 +816,7 @@ witness_display_list(void(*prnt)(const char *fmt, ...),
witness_displaydescendants(prnt, w, 0);
}
}
+#endif /* DDB */
static void
witness_addgraph(struct sbuf *sb, struct witness *parent)
@@ -836,6 +837,7 @@ witness_addgraph(struct sbuf *sb, struct witness *parent)
}
}
+#ifdef DDB
static void
witness_display(void(*prnt)(const char *fmt, ...))
{
OpenPOWER on IntegriCloud