diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2005-09-19 16:51:43 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2005-09-19 16:51:43 +0000 |
| commit | 84d2b7df26aaa4c58367dd2ba8a64bf84a7bb069 (patch) | |
| tree | e3c313c0b77fbcc1f434ec162a95a06a9e05a773 /sys/kern/subr_prf.c | |
| parent | a56e23da23b802f32e54aa5dadb70caf48a147d2 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_prf.c')
| -rw-r--r-- | sys/kern/subr_prf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 91418229ae72..a457ee92c43e 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) { |
