Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153859754
D6306.id16142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6306.id16142.diff
View Options
Index: sys/kern/subr_witness.c
===================================================================
--- sys/kern/subr_witness.c
+++ sys/kern/subr_witness.c
@@ -97,6 +97,7 @@
#include <sys/kdb.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
+#include <sys/kwarn.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mutex.h>
@@ -1718,15 +1719,15 @@
continue;
if (n == 0) {
va_start(ap, fmt);
- witness_voutput(fmt, ap);
+ vkwarn(fmt, ap);
va_end(ap);
- witness_output(
- " with the following %slocks held:\n",
+ kwarn(" with the following %slocks held:\n",
(flags & WARN_SLEEPOK) != 0 ?
"non-sleepable " : "");
}
n++;
- witness_list_lock(lock1, witness_output);
+ witness_list_lock(lock1,
+ (int(*)(const char *, ...)) kwarn);
}
/*
@@ -1751,11 +1752,12 @@
return (0);
va_start(ap, fmt);
- witness_voutput(fmt, ap);
+ vkwarn(fmt, ap);
va_end(ap);
- witness_output(" with the following %slocks held:\n",
+ kwarn(" with the following %slocks held:\n",
(flags & WARN_SLEEPOK) != 0 ? "non-sleepable " : "");
- n += witness_list_locks(&lock_list, witness_output);
+ n += witness_list_locks(&lock_list,
+ (int(*)(const char *, ...)) kwarn);
} else
sched_unpin();
if (flags & WARN_PANIC && n)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 7:59 AM (4 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32117028
Default Alt Text
D6306.id16142.diff (1 KB)
Attached To
Mode
D6306: witness_warn: Redirect output through kwarn(9)
Attached
Detach File
Event Timeline
Log In to Comment