From 686d93061561427f1334b1f4e68fc7d0c53b4c7c Mon Sep 17 00:00:00 2001 From: des Date: Tue, 11 Jul 2000 18:07:09 +0000 Subject: Clean up the debugging output --- lib/libfetch/common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/libfetch/common.c') diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index e1dea33..05104fe 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; } -- cgit v1.1