diff --git a/wifiHD/src/ard_tcp.c b/wifiHD/src/ard_tcp.c index 44e2f4002..0f35810a0 100644 --- a/wifiHD/src/ard_tcp.c +++ b/wifiHD/src/ard_tcp.c @@ -325,9 +325,9 @@ static err_t atcp_poll(void *arg, struct tcp_pcb *pcb) { return ERR_ABRT; } - WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries); + WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, + tcp_poll_retries, pending_close); if (_ttcp) tcp_send_data(_ttcp); - else WARN("ttcp NULL!"); if (pending_close) { @@ -361,9 +361,10 @@ static err_t atcp_poll_conn(void *arg, struct tcp_pcb *pcb) { return ERR_ABRT; } - WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries); + WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, + tcp_poll_retries, pending_close); + if (_ttcp) tcp_send_data(_ttcp); - else WARN("ttcp NULL!"); if (pending_close) { diff --git a/wifiHD/src/debug.h b/wifiHD/src/debug.h index b979f1523..0f56868ee 100644 --- a/wifiHD/src/debug.h +++ b/wifiHD/src/debug.h @@ -46,6 +46,12 @@ if ((enableDebug & INFO_TCP_FLAG)&&(verboseDebug & INFO_TCP_FLAG)) \ if (enableDebug & INFO_SPI_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \ } while (0) +#define INFO_SPI_VER(msg, args...) do { \ +if ((enableDebug & INFO_SPI_FLAG)&&(verboseDebug & INFO_SPI_FLAG)) \ + printk("I-[%s] " msg , __func__ , ##args ); \ +} while (0) + + #define INFO_UTIL(msg, args...) do { \ if (enableDebug & INFO_UTIL_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \ } while (0)