summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-05-11 17:01:14 +0000
committerattilio <attilio@FreeBSD.org>2010-05-11 17:01:14 +0000
commita6a1f012b778df297f5ac367cbd09a21823defe0 (patch)
treeb27d5ec4ed70f3633f0abcab31f2d96e2440f5f6 /sys/kern/subr_witness.c
parent31c196b3b94d81c997db90b6e80a55ceb02cb044 (diff)
downloadFreeBSD-src-a6a1f012b778df297f5ac367cbd09a21823defe0.zip
FreeBSD-src-a6a1f012b778df297f5ac367cbd09a21823defe0.tar.gz
There is not a good reason to have a different prototype for db_printf()
when compared to printf(). Unify it by returning the number of characters displayed for db_printf() as well. MFC after: 7 days
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index ef1bc39..02e2da4 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -343,10 +343,10 @@ static int sysctl_debug_witness_fullgraph(SYSCTL_HANDLER_ARGS);
static void witness_add_fullgraph(struct sbuf *sb, struct witness *parent);
#ifdef DDB
static void witness_ddb_compute_levels(void);
-static void witness_ddb_display(void(*)(const char *fmt, ...));
-static void witness_ddb_display_descendants(void(*)(const char *fmt, ...),
+static void witness_ddb_display(int(*)(const char *fmt, ...));
+static void witness_ddb_display_descendants(int(*)(const char *fmt, ...),
struct witness *, int indent);
-static void witness_ddb_display_list(void(*prnt)(const char *fmt, ...),
+static void witness_ddb_display_list(int(*prnt)(const char *fmt, ...),
struct witness_list *list);
static void witness_ddb_level_descendants(struct witness *parent, int l);
static void witness_ddb_list(struct thread *td);
@@ -908,7 +908,7 @@ witness_ddb_level_descendants(struct witness *w, int l)
}
static void
-witness_ddb_display_descendants(void(*prnt)(const char *fmt, ...),
+witness_ddb_display_descendants(int(*prnt)(const char *fmt, ...),
struct witness *w, int indent)
{
int i;
@@ -938,7 +938,7 @@ witness_ddb_display_descendants(void(*prnt)(const char *fmt, ...),
}
static void
-witness_ddb_display_list(void(*prnt)(const char *fmt, ...),
+witness_ddb_display_list(int(*prnt)(const char *fmt, ...),
struct witness_list *list)
{
struct witness *w;
@@ -953,7 +953,7 @@ witness_ddb_display_list(void(*prnt)(const char *fmt, ...),
}
static void
-witness_ddb_display(void(*prnt)(const char *fmt, ...))
+witness_ddb_display(int(*prnt)(const char *fmt, ...))
{
struct witness *w;
OpenPOWER on IntegriCloud