summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 9141822..a457ee9 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -129,6 +129,10 @@ uprintf(const char *fmt, ...)
struct putchar_arg pca;
int retval;
+ GIANT_REQUIRED;
+
+ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "uprintf");
+
if (td == NULL || td == PCPU_GET(idlethread))
return (0);
@@ -165,6 +169,10 @@ tprintf(struct proc *p, int pri, const char *fmt, ...)
struct putchar_arg pca;
struct session *sess = NULL;
+ GIANT_REQUIRED;
+
+ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "tprintf");
+
if (pri != -1)
flags |= TOLOG;
if (p != NULL) {
OpenPOWER on IntegriCloud