From: Willy Tarreau Date: Fri, 27 Jun 2014 16:08:49 +0000 (+0200) Subject: MINOR: log: make MAX_SYSLOG_LEN overridable at build time X-Git-Tag: v1.6-dev1~385 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=4e957907aa117c07214ab84ba2a58f2fc1666931;p=haproxy-2.1.git MINOR: log: make MAX_SYSLOG_LEN overridable at build time This value was set in log.h without any #ifndef around, so when one wanted to change it, a patch was needed. Let's move it to defaults.h with the usual #ifndef so that it's easier to change it. --- diff --git a/include/common/defaults.h b/include/common/defaults.h index 5508314..6e5840e 100644 --- a/include/common/defaults.h +++ b/include/common/defaults.h @@ -48,6 +48,10 @@ #define CAPTURE_LEN 64 #endif +#ifndef MAX_SYSLOG_LEN +#define MAX_SYSLOG_LEN 1024 +#endif + // maximum line size when parsing config #ifndef LINESIZE #define LINESIZE 2048 diff --git a/include/types/log.h b/include/types/log.h index 8ee8d7c..b3288bd 100644 --- a/include/types/log.h +++ b/include/types/log.h @@ -28,7 +28,6 @@ #include #include -#define MAX_SYSLOG_LEN 1024 #define NB_LOG_FACILITIES 24 #define NB_LOG_LEVELS 8 #define SYSLOG_PORT 514