diff options
author | Marri Devender Rao <devenrao@in.ibm.com> | 2017-08-06 05:42:52 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-16 21:09:34 +0000 |
commit | 7656fba39d7bef754ee38a1d9a7889e7d3309db4 (patch) | |
tree | dfe0e5619204b3674d57bd1f0a4691967b877c13 /configure.ac | |
parent | cfd9a7dd2c3c17f38f71357a5abdbf3516318242 (diff) | |
download | phosphor-logging-7656fba39d7bef754ee38a1d9a7889e7d3309db4.tar.gz phosphor-logging-7656fba39d7bef754ee38a1d9a7889e7d3309db4.zip |
Implement a cap on the number of committed errors
Resolves openbmc/openbmc#1617
Change-Id: I5850e5addb723e6f5102eb4677bb365285c1a633
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 977bcb0..5cc1c2e 100644 --- a/configure.ac +++ b/configure.ac @@ -89,6 +89,10 @@ AC_ARG_ENABLE([metadata-processing], [AX_APPEND_COMPILE_FLAGS([-DPROCESS_META], [CXXFLAGS])] ) +AC_ARG_VAR(ERROR_CAP, [Max number of error entries allowed for commit]) +AS_IF([test "x$ERROR_CAP" == "x"], [ERROR_CAP=100]) +AC_DEFINE_UNQUOTED([ERROR_CAP], [$ERROR_CAP], [Max number of error entries allowed for commit]) + AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile test/Makefile]) AC_CONFIG_FILES([phosphor-logging.pc]) |