summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.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/http.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/http.c')
-rw-r--r--lib/libfetch/http.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 10c3a78..0cd1186 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -146,11 +146,11 @@ _http_new_chunk(struct cookie *c)
if (fetchDebug) {
c->total += c->chunksize;
if (c->chunksize == 0)
- fprintf(stderr, "\033[1m_http_fillbuf(): "
- "end of last chunk\033[m\n");
+ fprintf(stderr, "_http_fillbuf(): "
+ "end of last chunk\n");
else
- fprintf(stderr, "\033[1m_http_fillbuf(): "
- "new chunk: %lu (%lu)\033[m\n",
+ fprintf(stderr, "_http_fillbuf(): "
+ "new chunk: %lu (%lu)\n",
(unsigned long)c->chunksize, (unsigned long)c->total);
}
#endif
@@ -447,8 +447,8 @@ _http_parse_mtime(const char *p, time_t *mtime)
setlocale(LC_TIME, locale);
if (r == NULL)
return -1;
- DEBUG(fprintf(stderr, "last modified: [\033[1m%04d-%02d-%02d "
- "%02d:%02d:%02d\033[m]\n",
+ DEBUG(fprintf(stderr, "last modified: [%04d-%02d-%02d "
+ "%02d:%02d:%02d]\n",
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec));
*mtime = timegm(&tm);
@@ -467,7 +467,7 @@ _http_parse_length(const char *p, off_t *length)
len = len * 10 + (*p - '0');
if (*p)
return -1;
- DEBUG(fprintf(stderr, "content length: [\033[1m%lld\033[m]\n",
+ DEBUG(fprintf(stderr, "content length: [%lld]\n",
(long long)len));
*length = len;
return 0;
@@ -495,7 +495,7 @@ _http_parse_range(const char *p, off_t *offset, off_t *length, off_t *size)
len = len * 10 + *p - '0';
if (*p || len < last - first + 1)
return -1;
- DEBUG(fprintf(stderr, "content range: [\033[1m%lld-%lld/%lld\033[m]\n",
+ DEBUG(fprintf(stderr, "content range: [%lld-%lld/%lld]\n",
(long long)first, (long long)last, (long long)len));
*offset = first;
*length = last - first + 1;
@@ -573,8 +573,8 @@ _http_basic_auth(int fd, const char *hdr, const char *usr, const char *pwd)
char *upw, *auth;
int r;
- DEBUG(fprintf(stderr, "usr: [\033[1m%s\033[m]\n", usr));
- DEBUG(fprintf(stderr, "pwd: [\033[1m%s\033[m]\n", pwd));
+ DEBUG(fprintf(stderr, "usr: [%s]\n", usr));
+ DEBUG(fprintf(stderr, "pwd: [%s]\n", pwd));
if (asprintf(&upw, "%s:%s", usr, pwd) == -1)
return -1;
auth = _http_base64(upw);
OpenPOWER on IntegriCloud