Skip to content

Commit 2c5896b

Browse files
masaori335cmcfarlen
authored andcommitted
traffic_logcat: Bump buffer size (#12054)
(cherry picked from commit 94a7227)
1 parent 1d6bbdc commit 2c5896b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/traffic_logcat/logcat.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "tscore/runroot.h"
2929

3030
#define PROGRAM_NAME "traffic_logcat"
31-
#define MAX_LOGBUFFER_SIZE 65536
31+
#define MAX_LOGBUFFER_SIZE 524288 // 512KB
3232

3333
#include <poll.h>
3434

@@ -168,7 +168,7 @@ process_file(int in_fd, int out_fd)
168168
uint32_t byte_count = header->byte_count;
169169

170170
if (byte_count > sizeof(buffer)) {
171-
fprintf(stderr, "Buffer too large!\n");
171+
fprintf(stderr, "Buffer too large! byte_count=%d\n", byte_count);
172172
return 1;
173173
}
174174
buffer_bytes = byte_count - header_size;

0 commit comments

Comments
 (0)