[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r14003: Use proper log levels with get_interface_address6() calls so (tor/trunk/src/or)
Author: weasel
Date: 2008-03-13 11:10:35 -0400 (Thu, 13 Mar 2008)
New Revision: 14003
Modified:
tor/trunk/src/or/test.c
Log:
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?
Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c 2008-03-13 15:07:21 UTC (rev 14002)
+++ tor/trunk/src/or/test.c 2008-03-13 15:10:35 UTC (rev 14003)
@@ -1366,8 +1366,8 @@
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));