summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRam Muthiah <rammuthiah@google.com>2019-11-07 19:27:25 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-11-07 19:27:25 -0800
commit9d07011ff23ca230d9765c712e04bc3ffce6cd17 (patch)
treee8a246922a09c4eed0c7ab6aba2adb62c57e3a8b
parent6c464f3db467ebc0668aa8161ddab100a3981f74 (diff)
parent8fcbd4f16bd9763b4cf7ffd91246d9637fba7dae (diff)
downloadcuttlefish_common-9d07011ff23ca230d9765c712e04bc3ffce6cd17.tar.gz
Merge "Allow for tombstones of unlimited length to be transfered to host" am: 55427cd2f1
am: 8fcbd4f16b Change-Id: I025be8cc7372c892fe3afd84c21aba702b317fd1
-rw-r--r--guest/monitoring/tombstone_transmit/tombstone_transmit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/guest/monitoring/tombstone_transmit/tombstone_transmit.cpp b/guest/monitoring/tombstone_transmit/tombstone_transmit.cpp
index 3633612c..8fc3586c 100644
--- a/guest/monitoring/tombstone_transmit/tombstone_transmit.cpp
+++ b/guest/monitoring/tombstone_transmit/tombstone_transmit.cpp
@@ -86,7 +86,6 @@ DEFINE_uint32(port, property_get_int32("ro.boot.vsock_tombstone_port", 0),
"VSOCK port to send tombstones to");
DEFINE_uint32(cid, 2, "VSOCK CID to send logcat output to");
#define TOMBSTONE_BUFFER_SIZE (1024)
-#define MAX_TOMBSTONE_SIZE (50 * TOMBSTONE_BUFFER_SIZE)
int main(int argc, char** argv) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
@@ -114,8 +113,7 @@ int main(int argc, char** argv) {
char buffer[TOMBSTONE_BUFFER_SIZE];
uint num_transfers = 0;
int num_bytes_read = 0;
- while (log_fd->IsOpen() && ifs.is_open() && !ifs.eof() &&
- num_bytes_read < MAX_TOMBSTONE_SIZE) {
+ while (log_fd->IsOpen() && ifs.is_open() && !ifs.eof()) {
ifs.read(buffer, sizeof(buffer));
num_bytes_read += ifs.gcount();
log_fd->Write(buffer, ifs.gcount());