diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2011-05-03 07:46:02 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2011-05-03 07:46:02 +0000 |
commit | e262422a37aa8c99aafdd14921424e64ffa2d3fe (patch) | |
tree | 4137772434af22bb52f1816e9fd01ce2f04e1586 | |
parent | cae92ca6ef2340a23fd73e6999d9bdcc1afc93fd (diff) | |
download | FreeBSD-src-e262422a37aa8c99aafdd14921424e64ffa2d3fe.zip FreeBSD-src-e262422a37aa8c99aafdd14921424e64ffa2d3fe.tar.gz |
Rename DEBUG macro to TFTP_DEBUG, to be more consistent with
debug macros in other files.
-rw-r--r-- | lib/libstand/tftp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index 4a2ca69..29590fc 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -148,14 +148,14 @@ recvtftp(struct iodesc *d, void *pkt, ssize_t len, time_t tleft) printf("illegal tftp error %d\n", ntohs(t->th_code)); errno = EIO; } else { -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp-error %d\n", ntohs(t->th_code)); #endif errno = tftperrors[ntohs(t->th_code)]; } return (-1); default: -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp type %d not handled\n", ntohs(t->th_opcode)); #endif return (-1); @@ -303,7 +303,7 @@ tftp_read(struct open_file *f, void *addr, size_t size, res = tftp_getnextblock(tftpfile); if (res) { /* no answer */ -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp: read error\n"); #endif return (res); @@ -319,7 +319,7 @@ tftp_read(struct open_file *f, void *addr, size_t size, inbuffer = tftpfile->validsize - offinblock; if (inbuffer < 0) { -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp: invalid offset %d\n", tftpfile->off); #endif @@ -336,7 +336,7 @@ tftp_read(struct open_file *f, void *addr, size_t size, if ((tftpfile->islastblock) && (count == inbuffer)) break; /* EOF */ } else { -#ifdef DEBUG +#ifdef TFTP_DEBUG printf("tftp: block %d not found\n", needblock); #endif return (EINVAL); |