]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
when counting available descs, say whether we're counting exits
authorRoger Dingledine <arma@torproject.org>
Fri, 16 Nov 2012 16:38:56 +0000 (11:38 -0500)
committerRoger Dingledine <arma@torproject.org>
Fri, 16 Nov 2012 16:38:56 +0000 (11:38 -0500)
src/or/nodelist.c

index 5a726377ec11db053dabfaf6e109bb1f38c8bcdf..7bb5e4fdfc1455893a9177b530e79c309c1a659c 100644 (file)
@@ -1269,8 +1269,9 @@ count_usable_descriptors(int *num_present, int *num_usable,
      }
   SMARTLIST_FOREACH_END(rs);
 
-  log_debug(LD_DIR, "%d usable, %d present (%s).", *num_usable, *num_present,
-            md ? "microdescs" : "descs");
+  log_debug(LD_DIR, "%d usable, %d present (%s%s).",
+            *num_usable, *num_present,
+            md ? "microdesc" : "desc", exit_only ? " exits" : "s");
 }
 
 /** We just fetched a new set of descriptors. Compute how far through