From 2ca74ffacf5fc8200ea081ad034fe77e7a7c8fa2 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 25 Oct 2018 15:49:30 +0300 Subject: [PATCH] Add debug. GitOrigin-RevId: 777b78434c43fc443c980c1b8859184ffe0bce17 --- td/mtproto/RawConnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/mtproto/RawConnection.cpp b/td/mtproto/RawConnection.cpp index 04479a2a..cbd3dfc3 100644 --- a/td/mtproto/RawConnection.cpp +++ b/td/mtproto/RawConnection.cpp @@ -70,7 +70,8 @@ Status RawConnection::flush_read(const AuthKey &auth_key, Callback &callback) { new_packet.as_slice().copy_from(packet.as_slice()); packet = std::move(new_packet); } - CHECK(is_aligned_pointer<4>(packet.as_slice().ubegin())); + CHECK(is_aligned_pointer<4>(packet.as_slice().ubegin())) + << packet.as_slice().ubegin() << ' ' << packet.size() << ' ' << wait_size; if (wait_size != 0) { break; }