Changeset 14384


Ignore:
Timestamp:
Dec 13, 2014, 5:04:14 PM (8 years ago)
Author:
mikedld
Message:

Fix format specifier warning introduced couple commits earlier

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r14382 r14384  
    28962896        const int inc = maxIncrease * mult;
    28972897        maxPeers = s->maxPeers + inc;
    2898         tordbg (s, "time since last cancel is %"PRId64" -- increasing the "
     2898        tordbg (s, "time since last cancel is %"PRIdMAX" -- increasing the "
    28992899                   "number of peers we're interested in by %d",
    2900                    (long long)timeSinceCancel, inc);
     2900                   (intmax_t)timeSinceCancel, inc);
    29012901      }
    29022902  }
  • trunk/libtransmission/transmission.h

    r14383 r14384  
    6565 #else
    6666  #define PRIu32 "lu"
     67 #endif
     68#endif
     69
     70#ifndef PRIdMAX
     71 #ifdef _WIN32
     72  #define PRIdMAX "I64"
     73 #else
     74  #define PRIdMAX "jd"
    6775 #endif
    6876#endif
Note: See TracChangeset for help on using the changeset viewer.