X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/c6bf4f310a33a9262d455ea4d3f0630b1255e3fe..ea3f04195ba4a5034c9c8e9b726d4f7ce96f1832:/bsd/kern/subr_prf.c diff --git a/bsd/kern/subr_prf.c b/bsd/kern/subr_prf.c index ddf8e5db4..0d7973826 100644 --- a/bsd/kern/subr_prf.c +++ b/bsd/kern/subr_prf.c @@ -122,7 +122,6 @@ struct snprintf_arg { extern const char *debugger_panic_str; extern void cnputc(char); /* standard console putc */ -void (*v_putc)(char) = cnputc; /* routine to putc on virtual console */ extern struct tty cons; /* standard console tty */ extern struct tty *constty; /* pointer to console "window" tty */ @@ -385,7 +384,7 @@ putchar(int c, void *arg) log_putc_locked(msgbufp, c); } if ((pca->flags & TOCONS) && constty == 0 && c != '\0') { - (*v_putc)(c); + cnputc(c); } if (pca->flags & TOSTR) { **sp = c;