getty: temporary diag — log input forwarded from tty to pty

This commit is contained in:
2026-07-18 12:42:04 +09:00
parent 106b7cb4e0
commit 25826efb9e
+1
View File
@@ -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");
}