aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-29 22:51:47 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-29 22:51:47 +0000
commitc2d304366b301a41a2dc2c20602bb27046bf1daf (patch)
treedbb536786fcf99ec3208060f24bb5342f77f8860 /src/or/routerparse.c
parent8af07e817ed3f9a25852724a4da8c4e07fff86a5 (diff)
downloadtor-c2d304366b301a41a2dc2c20602bb27046bf1daf.tar
tor-c2d304366b301a41a2dc2c20602bb27046bf1daf.tar.gz
r9032@Kushana: nickm | 2006-09-29 18:51:42 -0400
Now, all log messages should be distinct. svn:r8545
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 9d9f9d772..f76cfecaf 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1016,12 +1016,14 @@ routerstatus_parse_entry_from_string(const char **s, smartlist_t *tokens)
strlcpy(rs->nickname, tok->args[0], sizeof(rs->nickname));
if (digest_from_base64(rs->identity_digest, tok->args[1])) {
- log_warn(LD_DIR, "Error decoding digest %s", escaped(tok->args[1]));
+ log_warn(LD_DIR, "Error decoding identity digest %s",
+ escaped(tok->args[1]));
goto err;
}
if (digest_from_base64(rs->descriptor_digest, tok->args[2])) {
- log_warn(LD_DIR, "Error decoding digest %s", escaped(tok->args[2]));
+ log_warn(LD_DIR, "Error decoding descriptor digest %s",
+ escaped(tok->args[2]));
goto err;
}
@@ -1747,7 +1749,7 @@ router_get_hash_impl(const char *s, char *digest,
char *start, *end;
start = strstr(s, start_str);
if (!start) {
- log_warn(LD_DIR,"couldn't find \"%s\"",start_str);
+ log_warn(LD_DIR,"couldn't find start of hashed material \"%s\"",start_str);
return -1;
}
if (start != s && *(start-1) != '\n') {
@@ -1758,7 +1760,7 @@ router_get_hash_impl(const char *s, char *digest,
}
end = strstr(start+strlen(start_str), end_str);
if (!end) {
- log_warn(LD_DIR,"couldn't find \"%s\"",end_str);
+ log_warn(LD_DIR,"couldn't find end of hashed material \"%s\"",end_str);
return -1;
}
end = strchr(end+strlen(end_str), '\n');