summaryrefslogtreecommitdiffstats
path: root/net/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tftp.c')
-rw-r--r--net/tftp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/tftp.c b/net/tftp.c
index fb024e29be..89956f57b8 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -140,9 +140,7 @@ static void TftpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
break;
case TFTP_OACK:
-#ifdef ET_DEBUG
- printf("Got OACK: %s %s\n", pkt, pkt+strlen(pkt)+1);
-#endif
+ debug("Got OACK: %s %s\n", pkt, pkt+strlen(pkt)+1);
TftpState = STATE_OACK;
TftpServerPort = src;
TftpSend(); /* Send ACK */
@@ -171,10 +169,8 @@ static void TftpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
}
}
-#ifdef ET_DEBUG
if (TftpState == STATE_RRQ)
- puts("Server did not acknowledge timeout option!\n");
-#endif
+ debug("Server did not acknowledge timeout option!\n");
if (TftpState == STATE_RRQ || TftpState == STATE_OACK) {
/* first block received */