From 11bd4bc521420e6ade28af73ee42c6663efed328 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 20 Jul 2005 20:33:13 +0000 Subject: [PATCH] in circuit_list_path(), don't redundantly print the intended exit nickname when the circuit is open. svn:r4622 --- src/or/circuitbuild.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 307497a0ab..bd0a81d974 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -84,11 +84,13 @@ circuit_list_path(circuit_t *circ, int verbose) if (verbose) { const char *nickname = build_state_get_exit_nickname(circ->build_state); - tor_snprintf(buf, sizeof(buf)-1, "%s%s circ (length %d, exit %s):", + tor_snprintf(buf, sizeof(buf)-1, "%s%s circ (length %d%s%s):", circ->build_state->is_internal ? "internal" : "exit", circ->build_state->need_uptime ? " (high-uptime)" : "", circ->build_state->desired_path_len, - nickname?nickname:"*unnamed*"); + circ->state == CIRCUIT_STATE_OPEN ? "" : ", exit ", + circ->state == CIRCUIT_STATE_OPEN ? "" : + (nickname?nickname:"*unnamed*")); smartlist_add(elements, tor_strdup(buf)); }