Opened 3 years ago

Closed 3 years ago

#23575 closed defect (fixed)

Avoid printf warning in scheduler_ev_add

Reported by: teor Owned by: teor
Priority: Medium Milestone: Tor: 0.3.2.x-final
Component: Core Tor/Tor Version: Tor:
Severity: Normal Keywords: macos, os-type-variants, easy
Cc: dgoulet 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);
                            ~~~~~                     ^~~~~~~~~~~~~~~~~
./src/common/torlog.h:230:51: note: expanded from macro 'log_warn'
  log_fn_(LOG_WARN, domain, __FUNCTION__, args, ##__VA_ARGS__)

Child Tickets

Change History (3)

comment:1 Changed 3 years ago by teor

Owner: set to teor
Status: newassigned

See my branch bug23575.
Should have compiled on macOS before releasing... where's my MacMini build farm? :-)

comment:2 Changed 3 years ago by teor

Keywords: easy added
Status: assignedneeds_review

comment:3 Changed 3 years ago by nickm

Resolution: fixed
Status: needs_reviewclosed


Note: See TracTickets for help on using tickets.