Revert "Debug printfs."

This reverts commit 9f82de59a07da145c177648fe474f19cd9def7a1.

Revert accidental push
This commit is contained in:
Corinna Vinschen 2016-03-20 21:59:43 +01:00
parent 66dc7d731a
commit bf0f4baf95
3 changed files with 2 additions and 21 deletions

View File

@ -90,7 +90,6 @@ fhandler_base::get_readahead ()
/* FIXME - not thread safe */ /* FIXME - not thread safe */
if (raixget >= ralen) if (raixget >= ralen)
raixget = raixput = ralen = 0; raixget = raixput = ralen = 0;
debug_printf("available: %d", chret > -1);
return chret; return chret;
} }

View File

@ -309,8 +309,6 @@ fhandler_console::read (void *pv, size_t& buflen)
int ch; int ch;
set_input_state (); set_input_state ();
debug_printf("requested buflen %d", buflen);
/* Check console read-ahead buffer filled from terminal requests */ /* Check console read-ahead buffer filled from terminal requests */
if (con.cons_rapoi && *con.cons_rapoi) if (con.cons_rapoi && *con.cons_rapoi)
{ {
@ -320,7 +318,6 @@ fhandler_console::read (void *pv, size_t& buflen)
} }
int copied_chars = get_readahead_into_buffer (buf, buflen); int copied_chars = get_readahead_into_buffer (buf, buflen);
debug_printf("copied_chars %d", copied_chars);
if (copied_chars) if (copied_chars)
{ {
@ -698,11 +695,9 @@ fhandler_console::read (void *pv, size_t& buflen)
continue; continue;
} }
debug_printf("toadd = %p, nread = %d", toadd, nread);
if (toadd) if (toadd)
{ {
ssize_t bytes_read; line_edit_status res = line_edit (toadd, nread, ti);
line_edit_status res = line_edit (toadd, nread, ti, &bytes_read);
if (res == line_edit_signalled) if (res == line_edit_signalled)
goto sig_exit; goto sig_exit;
else if (res == line_edit_input_done) else if (res == line_edit_input_done)
@ -710,8 +705,6 @@ fhandler_console::read (void *pv, size_t& buflen)
} }
} }
debug_printf("ralen = %d, bytes = %d", ralen, ralen - raixget);
while (buflen) while (buflen)
if ((ch = get_readahead ()) < 0) if ((ch = get_readahead ()) < 0)
break; break;
@ -723,7 +716,6 @@ fhandler_console::read (void *pv, size_t& buflen)
#undef buf #undef buf
buflen = copied_chars; buflen = copied_chars;
debug_printf("buflen set to %d", buflen);
return; return;
err: err:

View File

@ -925,28 +925,18 @@ peek_console (select_record *me, bool)
if (irec.Event.KeyEvent.bKeyDown if (irec.Event.KeyEvent.bKeyDown
&& (irec.Event.KeyEvent.uChar.AsciiChar && (irec.Event.KeyEvent.uChar.AsciiChar
|| fhandler_console::get_nonascii_key (irec, tmpbuf))) || fhandler_console::get_nonascii_key (irec, tmpbuf)))
{ return me->read_ready = true;
debug_printf("peeked KEY_EVENT");
return me->read_ready = true;
}
} }
else else
{ {
if (irec.EventType == MOUSE_EVENT if (irec.EventType == MOUSE_EVENT
&& fh->mouse_aware (irec.Event.MouseEvent)) && fh->mouse_aware (irec.Event.MouseEvent))
{
debug_printf("peeked MOUSE_EVENT");
return me->read_ready = true; return me->read_ready = true;
}
if (irec.EventType == FOCUS_EVENT && fh->focus_aware ()) if (irec.EventType == FOCUS_EVENT && fh->focus_aware ())
{
debug_printf("peeked FOCUS_EVENT");
return me->read_ready = true; return me->read_ready = true;
}
} }
/* Read and discard the event */ /* Read and discard the event */
debug_printf("discarded other event");
ReadConsoleInput (h, &irec, 1, &events_read); ReadConsoleInput (h, &irec, 1, &events_read);
} }