Skip to content

Commit fc3570e

Browse files
committed
Fix issue compiler option2
1 parent 65e8bec commit fc3570e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

wifiHD/src/ard_tcp.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ static err_t atcp_poll(void *arg, struct tcp_pcb *pcb) {
325325
return ERR_ABRT;
326326
}
327327

328-
WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries);
328+
WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg,
329+
tcp_poll_retries, pending_close);
329330
if (_ttcp) tcp_send_data(_ttcp);
330-
else WARN("ttcp NULL!");
331331

332332
if (pending_close)
333333
{
@@ -361,9 +361,10 @@ static err_t atcp_poll_conn(void *arg, struct tcp_pcb *pcb) {
361361
return ERR_ABRT;
362362
}
363363

364-
WARN("ARD TCP [%p-%p] arg=%p retries=%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg, tcp_poll_retries);
364+
WARN("ARD TCP [%p-%p] arg=%p retries=%d pend.close:%d\n", (_ttcp)?_ttcp->tpcb:0, pcb, arg,
365+
tcp_poll_retries, pending_close);
366+
365367
if (_ttcp) tcp_send_data(_ttcp);
366-
else WARN("ttcp NULL!");
367368

368369
if (pending_close)
369370
{

wifiHD/src/debug.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ if ((enableDebug & INFO_TCP_FLAG)&&(verboseDebug & INFO_TCP_FLAG)) \
4646
if (enableDebug & INFO_SPI_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \
4747
} while (0)
4848

49+
#define INFO_SPI_VER(msg, args...) do { \
50+
if ((enableDebug & INFO_SPI_FLAG)&&(verboseDebug & INFO_SPI_FLAG)) \
51+
printk("I-[%s] " msg , __func__ , ##args ); \
52+
} while (0)
53+
54+
4955
#define INFO_UTIL(msg, args...) do { \
5056
if (enableDebug & INFO_UTIL_FLAG) printk("I-[%s] " msg , __func__ , ##args ); \
5157
} while (0)

0 commit comments

Comments
 (0)