[tor-bugs] #15381 [Tor]: cosmetic issue in log message : v0.1.2.3 versus 0.2.3.4

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Mar 20 12:59:49 UTC 2015


#15381: cosmetic issue in log message : v0.1.2.3 versus 0.2.3.4
-------------------------+-----------------
     Reporter:  toralf   |      Owner:
         Type:  defect   |     Status:  new
     Priority:  trivial  |  Milestone:
    Component:  Tor      |    Version:
   Resolution:           |   Keywords:
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+-----------------

Comment (by cypherpunks):

 These lines are printed by `src/or/main.c:2521-2526`
 {{{
 log_notice(LD_GENERAL, "Tor v%s %srunning on %s with Libevent %s, "
            "OpenSSL %s and Zlib %s.", version, bev_str,
            get_uname(),
            tor_libevent_get_version_str(),
            crypto_openssl_get_version_str(),
            tor_zlib_get_version_str());
 }}}
 and `src/common/log.c:254-260`
 {{{
 if (appname) {
   tor_snprintf(buf+n, sizeof(buf)-n,
                "%s opening %slog file.\n", appname, is_new?"new ":"");
 } else {
   tor_snprintf(buf+n, sizeof(buf)-n,
                "Tor %s opening %slog file.\n", VERSION, is_new?"new ":"");
 }
 }}}

 A quick grep for `Tor %s` and `Tor v%s` turned up
 {{{
 src/common/backtrace.c:220:  tor_asprintf(&bt_version, "Tor %s",
 tor_version);
 src/common/log.c:259:                 "Tor %s opening %slog file.\n",
 VERSION, is_new?"new ":"");
 src/or/entrynodes.c:576:      tor_asprintf(&tor_ver, "Tor %s", ver);
 src/or/main.c:2459:  tor_snprintf(progname, sizeof(progname), "Tor %s",
 get_version());
 src/or/router.c:752:  log_notice(LD_GENERAL, "Your Tor %s identity key
 fingerprint is '%s %s'",
 src/or/router.c:2284:  tor_snprintf(platform, len, "Tor %s on %s",
 src/or/statefile.c:441:  tor_asprintf(&global_state->TorVersion, "Tor %s",
 get_version());
 }}}
 and
 {{{
 src/or/main.c:2521:    log_notice(LD_GENERAL, "Tor v%s %srunning on %s
 with Libevent %s, "
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15381#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list