We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d6bbdc commit 2c5896bCopy full SHA for 2c5896b
1 file changed
src/traffic_logcat/logcat.cc
@@ -28,7 +28,7 @@
28
#include "tscore/runroot.h"
29
30
#define PROGRAM_NAME "traffic_logcat"
31
-#define MAX_LOGBUFFER_SIZE 65536
+#define MAX_LOGBUFFER_SIZE 524288 // 512KB
32
33
#include <poll.h>
34
@@ -168,7 +168,7 @@ process_file(int in_fd, int out_fd)
168
uint32_t byte_count = header->byte_count;
169
170
if (byte_count > sizeof(buffer)) {
171
- fprintf(stderr, "Buffer too large!\n");
+ fprintf(stderr, "Buffer too large! byte_count=%d\n", byte_count);
172
return 1;
173
}
174
buffer_bytes = byte_count - header_size;
0 commit comments