From b6a8d41e2a2379c4ee489121b1fabddfaab00fee Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Thu, 3 Dec 2015 15:37:00 -0800 Subject: [PATCH] logger.h: reduce maximum payload so sum is page size Reduce maximum log payload so that the sum with the maximum length header logger_entry_v4 is a page size. This is a performance measure. Expect side effects, truncates messages 8 bytes earlier. The length has a long history (2008) so there may be non-C code somewhere that has it hard-coded rather than reflecting this header. CTS tests may need to be adjusted. Bug: 25996918 Change-Id: I598c8c5cc78f6b0afc2c1f30cc6f3c18eb8c4c9d --- include/log/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/log/logger.h b/include/log/logger.h index 58e670535..60d47a2da 100644 --- a/include/log/logger.h +++ b/include/log/logger.h @@ -81,7 +81,7 @@ struct logger_entry_v4 { * written to the logger. An attempt to write more than * this amount will result in a truncated log entry. */ -#define LOGGER_ENTRY_MAX_PAYLOAD 4076 +#define LOGGER_ENTRY_MAX_PAYLOAD 4068 /* * The maximum size of a log entry which can be read from the