diff options
Diffstat (limited to 'sys/kern/subr_prf.c')
| -rw-r--r-- | sys/kern/subr_prf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index efff7f8dd04f..86a5376631d6 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -113,7 +113,7 @@ uprintf(const char *fmt, ...) struct putchar_arg pca; int retval = 0; - if (p && p != idleproc && p->p_flag & P_CONTROLT && + if (p && p != PCPU_GET(idleproc) && p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) { va_start(ap, fmt); pca.tty = p->p_session->s_ttyp; |
