]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/subr_prf.c
xnu-517.12.7.tar.gz
[apple/xnu.git] / bsd / kern / subr_prf.c
index 68867e8ea990231001fc4ba28d9960bfebb44771..8bcf0e3ce021e60ae67c14eca4930022cfc53d02 100644 (file)
@@ -207,14 +207,13 @@ tprintf(tpr_t tpr, const char *fmt, ...)
                flags |= TOTTY;
                tp = sess->s_ttyp;
        }
-       if (tp != NULL) {
-               pca.flags = TOTTY;
-               pca.tty   = tp;
-               
-               va_start(ap, fmt);
-               __doprnt(fmt, &ap, putchar, &pca, 10);
-               va_end(ap);
-       }
+       
+       pca.flags = flags;
+       pca.tty   = tp;
+       va_start(ap, fmt);
+       __doprnt(fmt, &ap, putchar, &pca, 10);
+       va_end(ap);
+
        logwakeup();
 }