From 4c5651fce189d5f1ea53519bda88dbfa07d24701 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 12 Sep 2005 18:41:18 +0000 Subject: [PATCH] Added state logging --- mbcico/binkp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mbcico/binkp.c b/mbcico/binkp.c index 160f438a..42ecea6d 100644 --- a/mbcico/binkp.c +++ b/mbcico/binkp.c @@ -95,6 +95,7 @@ typedef enum {CompNone, CompGZ, CompBZ2, CompPLZ} CompType; typedef enum {CompNone, CompPLZ} CompType; #endif +static char *txstate[] = { (char *)"TxGNF", (char *)"TxTryR", (char *)"TxReadS", (char *)"TxWLA", (char *)"TxDone" }; static char *rxstate[] = { (char *)"RxWaitF", (char *)"RxAccF", (char *)"RxReceD", (char *)"RxWriteD", (char *)"RxEOB", (char *)"RxDone" }; static char *opstate[] = { (char *)"No", (char *)"Can", (char *)"Want", (char *)"Active" }; @@ -1075,6 +1076,8 @@ TrType binkp_receiver(void) char *buf = bp.rxbuf; #endif + Syslog('b', "Binkp: receiver %s", rxstate[bp.RxState]); + if (bp.RxState == RxWaitF) { if (! bp.GotFrame) @@ -1463,6 +1466,8 @@ TrType binkp_transmitter(void) file_list *tsl; static binkp_list *tmp; + Syslog('b', "Binkd: transmitter %s", txstate[bp.TxState]); + if (bp.TxState == TxGNF) { /* * If we do not have a filelist yet, create one.