summaryrefslogtreecommitdiff
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2000-07-11 18:07:09 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2000-07-11 18:07:09 +0000
commitec894321e300b2a5e1b82b89c0edbf9713ae4145 (patch)
tree3eabf359849167c0e84e260118928bb36a130280 /lib/libfetch/ftp.c
parenta95d6fda80b53c3125df8e5ebfda72905141fd82 (diff)
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index be1515be4928..cb12eaa4a9ba 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -138,18 +138,12 @@ _ftp_chkerr(int cd)
_fetch_syserr();
return -1;
}
-#ifndef NDEBUG
- _fetch_info("got reply '%.*s'", lr_length - 2, last_reply);
-#endif
if (isftpinfo(last_reply)) {
while (!isftpreply(last_reply)) {
if (_fetch_getln(cd, &last_reply, &lr_size, &lr_length) == -1) {
_fetch_syserr();
return -1;
}
-#ifndef NDEBUG
- _fetch_info("got reply '%.*s'", lr_length - 2, last_reply);
-#endif
}
}
@@ -189,9 +183,7 @@ _ftp_cmd(int cd, char *fmt, ...)
_fetch_syserr();
return -1;
}
-#ifndef NDEBUG
- _fetch_info("sending '%s'", msg);
-#endif
+ DEBUG(fprintf(stderr, "\033[1m>>> %s\n\033[m", msg));
iov[0].iov_base = msg;
iov[0].iov_len = strlen(msg);
iov[1].iov_base = ENDL;