diff options
author | Denis Vlasenko | 2008-11-06 00:49:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-11-06 00:49:59 +0000 |
commit | 35a064b67fc1954b95be06499a514a45c9f2e814 (patch) | |
tree | c3c2690d8c5c112ce744e17a906a860a0c6897d2 /networking/tftp.c | |
parent | 202ac504e1addf0aa2debd53e7cd2411cc73ac8c (diff) | |
download | busybox-35a064b67fc1954b95be06499a514a45c9f2e814.zip busybox-35a064b67fc1954b95be06499a514a45c9f2e814.tar.gz |
build system: tidying up CONFIG_xxx names (suggested by Rob)
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index eb39e9c..1f70685 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -113,7 +113,7 @@ static int tftp_blksize_check(const char *blksize_str, int maxsize) bb_error_msg("bad blocksize '%s'", blksize_str); return -1; } -#if ENABLE_DEBUG_TFTP +#if ENABLE_TFTP_DEBUG bb_error_msg("using blksize %u", blksize); #endif return blksize; @@ -369,7 +369,7 @@ static int tftp_protocol( waittime_ms = TFTP_TIMEOUT_MS; send_again: -#if ENABLE_DEBUG_TFTP +#if ENABLE_TFTP_DEBUG fprintf(stderr, "sending %u bytes\n", send_len); for (cp = xbuf; cp < &xbuf[send_len]; cp++) fprintf(stderr, "%02x ", (unsigned char) *cp); @@ -431,7 +431,7 @@ static int tftp_protocol( /* Process recv'ed packet */ opcode = ntohs( ((uint16_t*)rbuf)[0] ); recv_blk = ntohs( ((uint16_t*)rbuf)[1] ); -#if ENABLE_DEBUG_TFTP +#if ENABLE_TFTP_DEBUG fprintf(stderr, "received %d bytes: %04x %04x\n", len, opcode, recv_blk); #endif if (opcode == TFTP_ERROR) { @@ -602,7 +602,7 @@ int tftp_main(int argc UNUSED_PARAM, char **argv) port = bb_lookup_port(argv[1], "udp", 69); peer_lsa = xhost2sockaddr(argv[0], port); -#if ENABLE_DEBUG_TFTP +#if ENABLE_TFTP_DEBUG fprintf(stderr, "using server '%s', remote_file '%s', local_file '%s'\n", xmalloc_sockaddr2dotted(&peer_lsa->u.sa), remote_file, local_file); |