FreeBSD/sys/kern/subr_prf.c
/*
 * Print a character on console or users terminal.  If destination is
 * the console then the last bunch of characters are saved in msgbuf for
 * inspection later.
 */
Print a character on console or users terminal.  If destination is
the console then the last bunch of characters are saved in msgbuf for
inspection later.
Print a character on console or users terminal . If destination is the console then the last bunch of characters are saved in msgbuf for inspection later .
static void
putchar(int c, void *arg)
{
	struct putchar_arg *ap = (struct putchar_arg*) arg;
	struct tty *tp = ap->tty;
	int flags = ap->flags;
	if (kdb_active) {
		if (c != '\0')
			cnputc(c);
		return;
	}
	if ((flags & TOTTY) && tp != NULL && panicstr == NULL)
		tty_putchar(tp, c);
	if ((flags & (TOCONS | TOLOG)) && c != '\0')
		putbuf(c, ap);
}
static void putchar ( int c , void * arg ) { struct putchar_arg * ap = ( struct putchar_arg * ) arg ; struct tty * tp = ap -> tty ; int flags = ap -> flags ; if ( kdb_active ) { if ( c != ' \0 ' ) cnputc ( c ) ; return ; } if ( ( flags & TOTTY ) && tp != NULL && panicstr == NULL ) tty_putchar ( tp , c ) ; if ( ( flags & ( TOCONS | TOLOG ) ) && c != ' \0 ' ) putbuf ( c , ap ) ; }
Print a character on console or users terminal.
Print a character on console or users terminal .
/* Don't use the tty code after a panic or while in ddb. */