From d3be2cb7fb47629cbe3e4b1cce9b091b3c1d4e86 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 17 Aug 2008 08:14:57 +0000 Subject: [PATCH] And tell us more in another error case svn:r16577 --- src/or/dirserv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/or/dirserv.c b/src/or/dirserv.c index ff40da8f46..c8c2bbe4a5 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1954,13 +1954,16 @@ routerstatus_format_entry(char *buf, size_t buf_len, DIGEST_LEN)) { char rl_d[HEX_DIGEST_LEN+1]; char rs_d[HEX_DIGEST_LEN+1]; + char id[HEX_DIGEST_LEN+1]; base16_encode(rl_d, sizeof(rl_d), desc->cache_info.signed_descriptor_digest, DIGEST_LEN); base16_encode(rs_d, sizeof(rs_d), rs->descriptor_digest, DIGEST_LEN); + base16_encode(id, sizeof(id), rs->identity_digest, DIGEST_LEN); log_err(LD_BUG, "descriptor digest in routerlist does not match " - "the one in routerstatus: %s vs %s\n", - rl_d, rs_d); + "the one in routerstatus: %s vs %s " + "(router %s)\n", + rl_d, rs_d, id); tor_assert(!memcmp(desc->cache_info.signed_descriptor_digest, rs->descriptor_digest,