Added some more debug output.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9715 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-01 20:18:46 +00:00
parent 7adec93fe8
commit 26fbfbaa64
1 changed files with 5 additions and 0 deletions

View File

@ -508,6 +508,8 @@ tty_input_read(struct tty *tty, void *buffer, size_t *_length, uint32 mode)
size_t length = *_length;
ssize_t bytesRead = 0;
TRACE(("tty_input_read(tty = %p, length = %lu, mode = %lu)\n", tty, length, mode));
if (length == 0)
return B_OK;
@ -552,6 +554,9 @@ tty_write_to_tty(struct tty *source, struct tty *target, const void *buffer, siz
// set. That's because our target is supposed to echo back at us, not
// to itself.
TRACE(("tty_write_to_tty(source = %p, target = %p, length = %lu, %s%s)\n", source, target, length,
sourceIsMaster ? "master" : "slave", echo ? ", echo mode" : ""));
// ToDo: "buffer" is not yet copied or accessed in a safe way!
if (length == 0)