aboutsummaryrefslogtreecommitdiff
path: root/media/sctp
diff options
context:
space:
mode:
authorPhilipp Hancke <phancke@nvidia.com>2021-05-25 13:41:28 +0200
committerWebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-05-25 12:43:55 +0000
commitaf0dff0c7daa6964cfd95125428f2ce6f3c14668 (patch)
tree81660a8e54a850c967df037f7c2ac3cb2e51867d /media/sctp
parent2ab4764b9e305b7427b97e1c4a30d73975fc19e7 (diff)
downloadwebrtc-af0dff0c7daa6964cfd95125428f2ce6f3c14668.tar.gz
dcsctp: start SCTP_DUMP on a new line
for consistency with usrsctp_dumppacket which prefixes its output with a newline. This makes the packets easier to grep and process with text2pcap. BUG=webrtc:12614 Change-Id: I67bc2e0026250b21b030daf967ebc697640f2d7e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220102 Reviewed-by: Victor Boivie <boivie@webrtc.org> Commit-Queue: Philipp Hancke <phancke@nvidia.com> Cr-Commit-Position: refs/heads/master@{#34114}
Diffstat (limited to 'media/sctp')
-rw-r--r--media/sctp/dcsctp_transport.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/sctp/dcsctp_transport.cc b/media/sctp/dcsctp_transport.cc
index 0a6cb33469..5955167be3 100644
--- a/media/sctp/dcsctp_transport.cc
+++ b/media/sctp/dcsctp_transport.cc
@@ -98,7 +98,7 @@ class TextPcapPacketObserver : public dcsctp::PacketObserver {
dcsctp::TimeMs now,
rtc::ArrayView<const uint8_t> payload) {
rtc::StringBuilder s;
- s << prefix;
+ s << "\n" << prefix;
int64_t remaining = *now % (24 * 60 * 60 * 1000);
int hours = remaining / (60 * 60 * 1000);
remaining = remaining % (60 * 60 * 1000);