aboutsummaryrefslogtreecommitdiff
path: root/bootloader/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/tty.c')
-rw-r--r--bootloader/tty.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootloader/tty.c b/bootloader/tty.c
index 8cf20fb..fe8f39d 100644
--- a/bootloader/tty.c
+++ b/bootloader/tty.c
@@ -28,6 +28,9 @@
void
put(unsigned char c, int fd)
{
+#if DEBUG
+ fprintf(stderr, "-> 0x%.2x\n", c);
+#endif
while (write(fd, &c, 1) == -1)
;
}
@@ -39,7 +42,9 @@ get(int fd)
while (read(fd, &c, 1) == -1)
;
-
+#if DEBUG
+ fprintf(stderr, "<- 0x%.2x\n", c);
+#endif
return c;
}