[tor-bugs] #23575 [Core Tor/Tor]: Avoid printf warning in scheduler_ev_add
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Sep 19 06:29:18 UTC 2017
#23575: Avoid printf warning in scheduler_ev_add
------------------------------+-------------------------------------
Reporter: teor | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.3.2.x-final
Component: Core Tor/Tor | Version: Tor: 0.3.2.1-alpha
Severity: Normal | Keywords: macos, os-type-variants
Actual Points: 0.1 | Parent ID:
Points: 0.1 | Reviewer:
Sponsor: |
------------------------------+-------------------------------------
{{{
CC src/common/compat_threads.o
src/or/scheduler.c:511:55: error: format specifies type 'long' but the
argument
has type '__darwin_suseconds_t' (aka 'int') [-Werror,-Wformat]
"%ld.%06ld", next_run->tv_sec, next_run->tv_usec);
~~~~~ ^~~~~~~~~~~~~~~~~
%06d
./src/common/torlog.h:230:51: note: expanded from macro 'log_warn'
log_fn_(LOG_WARN, domain, __FUNCTION__, args, ##__VA_ARGS__)
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23575>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list