summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-07-11 18:07:09 +0000
committerdes <des@FreeBSD.org>2000-07-11 18:07:09 +0000
commit686d93061561427f1334b1f4e68fc7d0c53b4c7c (patch)
treec3c4469d9795fe116b6c53e762b873e858171ddc /lib/libfetch/common.c
parent7339539ac5bf70b53a7f0e7db060f52e754be76a (diff)
downloadFreeBSD-src-686d93061561427f1334b1f4e68fc7d0c53b4c7c.zip
FreeBSD-src-686d93061561427f1334b1f4e68fc7d0c53b4c7c.tar.gz
Clean up the debugging output
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 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;
}
OpenPOWER on IntegriCloud