summaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-24 19:39:45 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-24 19:39:45 +0000
commitf9b0be526e2d08a93728ae92b450e92a09aadf82 (patch)
tree8fa99a4ba1b4ca2790f761337e8b50b04696ad94 /src/or/buffers.c
parentfa338d85db52e665012ffe40aba676ccb220b016 (diff)
downloadtor-f9b0be526e2d08a93728ae92b450e92a09aadf82.tar.gz
tor-f9b0be526e2d08a93728ae92b450e92a09aadf82.zip
Use LD_BUG as appropriate; convert rend* and router* to new logging interface; use new circ_log_path interface
svn:r5302
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 54e7e08122..2a470ce440 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -87,7 +87,7 @@ buf_normalize(buf_t *buf)
} else {
char *newmem, *oldmem;
size_t sz = (buf->mem+buf->len)-buf->cur;
- warn(LD_GENERAL, "Unexpected non-normalized buffer.");
+ warn(LD_BUG, "Unexpected non-normalized buffer.");
newmem = GUARDED_MEM(tor_malloc(ALLOC_LEN(buf->len)));
SET_GUARDS(newmem, buf->len);
memcpy(newmem, buf->cur, sz);
@@ -807,7 +807,7 @@ fetch_from_buf_http(buf_t *buf,
buf_normalize(buf);
if (buf_nul_terminate(buf)<0) {
- warn(LD_GENERAL,"Couldn't nul-terminate buffer");
+ warn(LD_BUG,"Couldn't nul-terminate buffer");
return -1;
}
headers = buf->cur;