summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-01-01 14:48:09 +0000
committerdes <des@FreeBSD.org>2002-01-01 14:48:09 +0000
commite37508b70c9d25bd2f520a14a66618faf0400ee8 (patch)
tree25877d0b1aea3b6e6e215b2b7021a29ddfcd1b31 /lib/libfetch/common.c
parent471e9b7d7c0b4e3bdc17bb28ddfefde0d1224379 (diff)
downloadFreeBSD-src-e37508b70c9d25bd2f520a14a66618faf0400ee8.zip
FreeBSD-src-e37508b70c9d25bd2f520a14a66618faf0400ee8.tar.gz
Remove VT100 escapes from debugging messages now that they're enabled by
default. PR: 32988 MFC after: 3 days
Diffstat (limited to 'lib/libfetch/common.c')
-rw-r--r--lib/libfetch/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index b39839a..88c93a5 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -208,7 +208,7 @@ _fetch_connect(const char *host, int port, int af, int verbose)
struct addrinfo hints, *res, *res0;
int sd, err;
- DEBUG(fprintf(stderr, "\033[1m---> %s:%d\033[m\n", host, port));
+ DEBUG(fprintf(stderr, "---> %s:%d\n", host, port));
if (verbose)
_fetch_info("looking up %s", host);
@@ -324,7 +324,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));
+ DEBUG(fprintf(stderr, "<<< %.*s", (int)*len, *buf));
return 0;
}
@@ -348,7 +348,7 @@ _fetch_putln(int fd, const char *str, size_t len)
wlen = writev(fd, iov, 2);
if (wlen < 0 || (size_t)wlen != len)
return -1;
- DEBUG(fprintf(stderr, "\033[1m>>> %s\n\033[m", str));
+ DEBUG(fprintf(stderr, ">>> %s\n", str));
return 0;
}
OpenPOWER on IntegriCloud