summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-03-13 15:10:35 +0000
committerPeter Palfrader <peter@palfrader.org>2008-03-13 15:10:35 +0000
commit24884bb3ed970539e073358270fcff00669eb1fa (patch)
tree9386f43196d32de9aec2ec9a64afe42f6013173e /src/or/test.c
parentcad3d651d07fcf12a69188a934fa408956052b32 (diff)
downloadtor-24884bb3ed970539e073358270fcff00669eb1fa.tar.gz
tor-24884bb3ed970539e073358270fcff00669eb1fa.zip
Use proper log levels with get_interface_address6() calls so we do not die in an assert error because of invalid log levels. Should a failure here fail our test suite?
svn:r14003
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index f11c62f6cf..68a36ea60f 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1366,8 +1366,8 @@ test_util_ip6_helpers(void)
test_assert(sizeof(tor_addr_t) >= sizeof(struct in6_addr));
/* get interface addresses */
- r = get_interface_address6(0, AF_INET, &t1);
- i = get_interface_address6(0, AF_INET6, &t2);
+ r = get_interface_address6(LOG_ERR, AF_INET, &t1);
+ i = get_interface_address6(LOG_ERR, AF_INET6, &t2);
#if 0
tor_inet_ntop(AF_INET, &t1.sa.sin_addr, buf, sizeof(buf));
printf("\nv4 address: %s (family=%i)", buf, IN_FAMILY(&t1));