Changeset 1031 for branches


Ignore:
Timestamp:
Jun 8, 2017, 11:09:04 PM (8 years ago)
Author:
Paul Smedley
Message:

client-3.0: Fix debug logging to ensure that the hseconds value is formatted to 2 digits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-3.0/src/debug.c

    r756 r1031  
    144144                gettimeofday(&tv, NULL);
    145145                strftime(buf,sizeof(buf)-1,"%Y/%m/%d %H:%M:%S", localtime((time_t *)&tv.tv_sec));
    146                 fprintf(f, "%s.%d: %d %d: ", buf, tv.tv_usec / 10000, level, (long)_gettid());
     146                fprintf(f, "%s.%02d: %d %d: ", buf, tv.tv_usec / 10000, level, (long)_gettid());
    147147                va_start(args, fmt);
    148148                vfprintf(f, fmt, args);
Note: See TracChangeset for help on using the changeset viewer.