Changeset 1717
- Timestamp:
- 03/26/2007 08:20:32 AM (17 months ago)
- Files:
-
- 1 modified
-
trunk/src/http-header-glue.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/http-header-glue.c
r1675 r1717 154 154 char dst[INET6_ADDRSTRLEN]; 155 155 156 log_error_write(srv, __FILE__, __LINE__, 157 "SSSS", "NOTICE: getnameinfo failed: ", 158 strerror(errno), ", using ip-address instead"); 156 ERROR("NOTICE: getnameinfo() failed: %s, using ip-address instead", 157 strerror(errno)); 159 158 160 159 buffer_append_string(o, … … 168 167 case AF_INET: 169 168 if (NULL == (he = gethostbyaddr((char *)&our_addr.ipv4.sin_addr, sizeof(struct in_addr), AF_INET))) { 170 log_error_write(srv, __FILE__, __LINE__, 171 "SdSS", "NOTICE: gethostbyaddr failed: ", 172 h_errno, ", using ip-address instead"); 169 ERROR("NOTICE: gethostbyaddr() failed: %d, using ip-address instead", 170 h_errno); 173 171 174 172 buffer_append_string(o, inet_ntoa(our_addr.ipv4.sin_addr)); … … 178 176 break; 179 177 default: 180 log_error_write(srv, __FILE__, __LINE__, 181 "S", "ERROR: unsupported address-type"); 178 ERROR("ERROR: unsupported address-type, %d", our_addr.plain.sa_family); 182 179 183 180 buffer_free(o);

