summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-12-10 09:36:26 +0000
committerRoger Dingledine <arma@torproject.org>2005-12-10 09:36:26 +0000
commit58366ffd249590d3f99296563e3f0a189efd568b (patch)
treeb6f6016f5dc748002315335361c8b1b4a5ed813b /src/or/dirserv.c
parent9b0a40ec7866005928e49b4717d626e64057c331 (diff)
downloadtor-58366ffd249590d3f99296563e3f0a189efd568b.tar.gz
tor-58366ffd249590d3f99296563e3f0a189efd568b.zip
when we changed from log_fn to debug/info/notice/warn/err,
we screwed up the formatting in wild and unpredictable ways. fix it before it becomes convention to format logs in wild and unpredictable ways. still need to do src/common/ someday. svn:r5551
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 606c2385bb..a92c4f7bae 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -204,8 +204,8 @@ dirserv_parse_fingerprint_file(const char *fname)
/* If you approved an OR called "client", then clients who use
* the default nickname could all be rejected. That's no good. */
notice(LD_CONFIG,
- "Authorizing a nickname '%s' would break many clients; skipping.",
- DEFAULT_CLIENT_NICKNAME);
+ "Authorizing a nickname '%s' would break many clients; skipping.",
+ DEFAULT_CLIENT_NICKNAME);
continue;
}
if (add_fingerprint_to_dir(nickname, fingerprint, fingerprint_list_new) != 0)
@@ -335,7 +335,9 @@ dirserv_get_status_impl(const char *fp, const char *nickname,
return FP_NAMED; /* Right fingerprint. */
} else {
if (should_log)
- warn(LD_DIRSERV,"Mismatched fingerprint for '%s': expected '%s' got '%s'. ContactInfo '%s', platform '%s'.)",
+ warn(LD_DIRSERV,
+ "Mismatched fingerprint for '%s': expected '%s' got '%s'. "
+ "ContactInfo '%s', platform '%s'.)",
nickname, nn_ent->fingerprint, fp,
contact ? contact : "",
platform ? platform : "");
@@ -551,7 +553,7 @@ directory_remove_invalid(void)
switch (r) {
case FP_REJECT:
info(LD_DIRSERV, "Router '%s' is now rejected: %s",
- ent->nickname, msg?msg:"");
+ ent->nickname, msg?msg:"");
routerlist_remove(rl, ent, i--, 0);
changed = 1;
break;
@@ -829,13 +831,13 @@ dirserv_dump_directory_to_string(char **dir_out,
overruns.*/
tor_snprintf(buf, buf_len,
- "signed-directory\n"
- "published %s\n"
- "recommended-software %s\n"
- "router-status %s\n"
- "dir-signing-key\n%s\n",
- published, recommended_versions, router_status,
- identity_pkey);
+ "signed-directory\n"
+ "published %s\n"
+ "recommended-software %s\n"
+ "router-status %s\n"
+ "dir-signing-key\n%s\n",
+ published, recommended_versions, router_status,
+ identity_pkey);
tor_free(recommended_versions);
tor_free(router_status);