summaryrefslogtreecommitdiff
path: root/lib/libfetch/common.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/common.c
parenta95d6fda80b53c3125df8e5ebfda72905141fd82 (diff)
Notes
Diffstat (limited to 'lib/libfetch/common.c')
-rw-r--r--lib/libfetch/common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index e1dea332b0dc..05104fe98bf7 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -173,9 +173,7 @@ _fetch_connect(char *host, int port, int af, int verbose)
struct addrinfo hints, *res, *res0;
int sd, err;
-#ifndef NDEBUG
- fprintf(stderr, "\033[1m---> %s:%d\033[m\n", host, port);
-#endif
+ DEBUG(fprintf(stderr, "\033[1m---> %s:%d\033[m\n", host, port));
if (verbose)
_fetch_info("looking up %s", host);
@@ -292,6 +290,7 @@ _fetch_getln(int fd, char **buf, size_t *size, size_t *len)
}
} while (c != '\n');
+ DEBUG(fprintf(stderr, "\033[1m<<< %.*s\033[m", (int)*len, *buf));
return 0;
}