Skip to content

Commit

Permalink
Merge branch 'aria2:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingzhang authored Oct 20, 2023
2 parents cbe96f4 + 076dea3 commit e6615d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ void writeHeader(Output& fp, Logger::LEVEL level, const char* sourceFile,
size_t dateLength =
strftime(datestr, sizeof(datestr), "%Y-%m-%d %H:%M:%S", &tm);
assert(dateLength <= (size_t)20);
fp.printf("%s.%06ld [%s] [%s:%d] ", datestr, tv.tv_usec, levelToString(level),
sourceFile, lineNum);
fp.printf("%s.%06ld [%s] [%s:%d] ", datestr, (unsigned long)tv.tv_usec,
levelToString(level), sourceFile, lineNum);
}
} // namespace

Expand Down

0 comments on commit e6615d7

Please sign in to comment.