From: Ben Gras Date: Tue, 4 May 2010 09:26:01 +0000 (+0000) Subject: tty: don't use custom kputc; this fixes tty printf()s. X-Git-Tag: v3.1.7~86 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/ChangeLog.html?a=commitdiff_plain;h=09958abda8b756683642cfc0e5f8016a58303080;p=minix.git tty: don't use custom kputc; this fixes tty printf()s. --- diff --git a/drivers/tty/console.c b/drivers/tty/console.c index 4c4975d78..deb920153 100644 --- a/drivers/tty/console.c +++ b/drivers/tty/console.c @@ -1036,29 +1036,6 @@ tty_t *tp; cons_ioctl(tp, 0); } -/*===========================================================================* - * kputc * - *===========================================================================*/ -PUBLIC void kputc(int c) -{ -/* Accumulate a single character for a kernel message. Send a notification - * the to output driver if an END_OF_KMESS is encountered. - */ -#if 0 - ser_putc(c); - return; -#endif - - if (c != 0) { - kmess.km_buf[kmess.km_next] = c; /* put normal char in buffer */ - if (kmess.km_size < _KMESS_BUF_SIZE) - kmess.km_size += 1; - kmess.km_next = (kmess.km_next + 1) % _KMESS_BUF_SIZE; - } else { - notify(LOG_PROC_NR); - } -} - /*===========================================================================* * do_new_kmess * *===========================================================================*/