X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fdrv%2Fserial.c;h=df13fc73e11b6f3e25572fa0d49df9f459922437;hb=5cab4c07bc13888dc7956194ef9595508072a4eb;hp=bc7597e4bdb0b6b3b9858c1ccdcf66a3cc24e7cc;hpb=7b64f5e7f00e445a5637e9e3289a1332a14d28e5;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/drv/serial.c b/KernelLand/Kernel/drv/serial.c index bc7597e4..df13fc73 100644 --- a/KernelLand/Kernel/drv/serial.c +++ b/KernelLand/Kernel/drv/serial.c @@ -5,6 +5,7 @@ * drv/serial.c * - Common serial port code */ +#define DEBUG 0 #include #include #include @@ -65,6 +66,7 @@ tSerialPort *Serial_CreatePort(tSerial_OutFcn output, void *handle) void Serial_ByteReceived(tSerialPort *Port, char Ch) { + LOG("Port=%p,Ch=%i", Port, Ch); if( !Port ) return ; if( Port == gSerial_KernelDebugPort ) @@ -109,6 +111,7 @@ void Serial_ByteReceived(tSerialPort *Port, char Ch) } if( Ch == '\r' ) Ch = '\n'; + LOG("Dispatch to PTY"); PTY_SendInput(Port->PTY, &Ch, 1); }