You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB

  1. From b4cbc1e2227754ff384da1437e7d3448f91571b2 Mon Sep 17 00:00:00 2001
  2. From: Willy Tarreau <w@1wt.eu>
  3. Date: Fri, 27 Jun 2014 18:08:49 +0200
  4. Subject: [PATCH 8/9] MINOR: log: make MAX_SYSLOG_LEN overridable at build time
  5. This value was set in log.h without any #ifndef around, so when one
  6. wanted to change it, a patch was needed. Let's move it to defaults.h
  7. with the usual #ifndef so that it's easier to change it.
  8. (cherry picked from commit 4e957907aa117c07214ab84ba2a58f2fc1666931)
  9. ---
  10. include/common/defaults.h | 4 ++++
  11. include/types/log.h | 1 -
  12. 2 files changed, 4 insertions(+), 1 deletion(-)
  13. diff --git a/include/common/defaults.h b/include/common/defaults.h
  14. index c53db08..0075509 100644
  15. --- a/include/common/defaults.h
  16. +++ b/include/common/defaults.h
  17. @@ -48,6 +48,10 @@
  18. #define CAPTURE_LEN 64
  19. #endif
  20. +#ifndef MAX_SYSLOG_LEN
  21. +#define MAX_SYSLOG_LEN 1024
  22. +#endif
  23. +
  24. // maximum line size when parsing config
  25. #ifndef LINESIZE
  26. #define LINESIZE 2048
  27. diff --git a/include/types/log.h b/include/types/log.h
  28. index 8ee8d7c..b3288bd 100644
  29. --- a/include/types/log.h
  30. +++ b/include/types/log.h
  31. @@ -28,7 +28,6 @@
  32. #include <common/config.h>
  33. #include <common/mini-clist.h>
  34. -#define MAX_SYSLOG_LEN 1024
  35. #define NB_LOG_FACILITIES 24
  36. #define NB_LOG_LEVELS 8
  37. #define SYSLOG_PORT 514
  38. --
  39. 1.8.5.5