diff --git a/src/bin/getty.rs b/src/bin/getty.rs index 6afb645771..f3dc787273 100644 --- a/src/bin/getty.rs +++ b/src/bin/getty.rs @@ -67,6 +67,7 @@ pub fn handle( Err(ref err) if err.errno() == EAGAIN => break, Err(_) => panic!("getty: failed to read from TTY"), }; + eprintln!("getty-diag: fwd {count} bytes tty->pty {:?}", &packet[..count.min(24)]); redox::write(master_fd as usize, &packet[..count]) .expect("getty: failed to write master PTY"); }