fix RTP_DUMP timestamps
which was missing a setfill call, leading to invalid timestamps. BUG=webrtc:10675 Change-Id: Ib60f9f18b250aa89103e8de70b525df13c1042bd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/205780 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Philipp Hancke <philipp.hancke@googlemail.com> Cr-Commit-Position: refs/heads/master@{#33183}
This commit is contained in:
committed by
Commit Bot
parent
129caca888
commit
d42413a4b4
@ -477,9 +477,10 @@ void SrtpSession::DumpPacket(const void* buf, int len, bool outbound) {
|
||||
int64_t seconds = (time_of_day / 1000) % 60;
|
||||
int64_t millis = time_of_day % 1000;
|
||||
RTC_LOG(LS_VERBOSE) << "\n" << (outbound ? "O" : "I") << " "
|
||||
<< std::setw(2) << hours << ":" << std::setw(2) << minutes << ":"
|
||||
<< std::setw(2) << seconds << "." << std::setw(3)
|
||||
<< std::setfill('0') << millis << " "
|
||||
<< std::setfill('0') << std::setw(2) << hours << ":"
|
||||
<< std::setfill('0') << std::setw(2) << minutes << ":"
|
||||
<< std::setfill('0') << std::setw(2) << seconds << "."
|
||||
<< std::setfill('0') << std::setw(3) << millis << " "
|
||||
<< "000000 " << rtc::hex_encode_with_delimiter((const char *)buf, len, ' ')
|
||||
<< " # RTP_DUMP";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user