minor touchups

svn:r12657
This commit is contained in:
Roger Dingledine 2007-12-03 22:04:19 +00:00
parent f4e228f849
commit 3229117d3a
2 changed files with 2 additions and 1 deletions

View File

@ -1986,6 +1986,7 @@ connection_ap_make_link(char *address, uint16_t port,
if (use_begindir) { if (use_begindir) {
conn->chosen_exit_name = tor_malloc(HEX_DIGEST_LEN+2); conn->chosen_exit_name = tor_malloc(HEX_DIGEST_LEN+2);
conn->chosen_exit_name[0] = '$'; conn->chosen_exit_name[0] = '$';
tor_assert(digest);
base16_encode(conn->chosen_exit_name+1,HEX_DIGEST_LEN+1, base16_encode(conn->chosen_exit_name+1,HEX_DIGEST_LEN+1,
digest, DIGEST_LEN); digest, DIGEST_LEN);
} }

View File

@ -1727,7 +1727,7 @@ dirserv_compute_performance_thresholds(routerlist_t *rl)
log(LOG_INFO, LD_DIRSERV, log(LOG_INFO, LD_DIRSERV,
"Cutoffs: For Stable, %lu sec uptime, %lu sec MTBF. " "Cutoffs: For Stable, %lu sec uptime, %lu sec MTBF. "
"For Fast: %lu bytes/sec." "For Fast: %lu bytes/sec. "
"For Guard: WFU %.03lf%%, time-known %lu sec, " "For Guard: WFU %.03lf%%, time-known %lu sec, "
"and bandwidth %lu or %lu bytes/sec.", "and bandwidth %lu or %lu bytes/sec.",
(unsigned long)stable_uptime, (unsigned long)stable_uptime,