[KDGDB]
[reactos.git] / reactos / drivers / base / kdgdb / kdcom.c
index be9e634..245e8ca 100644 (file)
@@ -296,15 +296,15 @@ KDSTATUS
 NTAPI
 KdpReceiveByte(_Out_ PUCHAR OutByte)
 {
+    USHORT CpStatus = CpGetByte(&KdComPort, OutByte, TRUE, FALSE);
     /* Get the byte */
-    if (CpGetByte(&KdComPort, OutByte, TRUE, FALSE) == CP_GET_SUCCESS)
+    if (CpStatus == CP_GET_SUCCESS)
     {
         return KdPacketReceived;
     }
-    else
-    {
-        return KdPacketTimedOut;
-    }
+
+    KDDBGPRINT("CpGetByte returned %u.\n", CpStatus);
+    return KdPacketTimedOut;
 }
 
 KDSTATUS
@@ -319,6 +319,7 @@ KdpPollBreakIn(VOID)
     {
         if (Byte == 0x03)
         {
+            KDDBGPRINT("BreakIn Polled.\n");
             return KdPacketReceived;
         }
         else if (Byte == '$')