openswan-2.4.9-002-oswlog.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -urp openswan-2.4.7.orig/include/oswlog.h openswan-2.4.7/include/oswlog.h
  2. --- openswan-2.4.7.orig/include/oswlog.h 2005-01-26 01:52:16.000000000 +0100
  3. +++ openswan-2.4.7/include/oswlog.h 2006-11-28 17:56:59.000000000 +0100
  4. @@ -53,6 +53,16 @@ extern void tool_close_log(void);
  5. #else /*!DEBUG*/
  6. #define DBG(cond, action) { } /* do nothing */
  7. +#define DBGP(...) (0)
  8. +#define exit_tool exit
  9. +#define loglog(...) do { } while(0)
  10. +#define openswan_loglog(...) do { } while(0)
  11. +#define openswan_DBG_dump(...) do { } while(0)
  12. +#define plog openswan_log
  13. +extern void openswan_log(const char *message, ...) PRINTF_LIKE(1);
  14. +#define DBG_log(...) do { } while(0)
  15. +extern void tool_init_log(void);
  16. +extern void tool_close_log(void);
  17. #endif /*!DEBUG*/
  18. diff -urp openswan-2.4.7.orig/include/pluto_constants.h openswan-2.4.7/include/pluto_constants.h
  19. --- openswan-2.4.7.orig/include/pluto_constants.h 2005-11-16 23:41:30.000000000 +0100
  20. +++ openswan-2.4.7/include/pluto_constants.h 2006-11-28 17:34:20.000000000 +0100
  21. @@ -175,6 +175,10 @@ extern const char *const debug_bit_names
  22. #define DBG_NONE 0 /* no options on, including impairments */
  23. #define DBG_ALL LRANGES(DBG_RAW, DBG_X509) /* all logging options on EXCEPT DBG_PRIVATE */
  24. +#else
  25. +/* FIXME: better cleanup ac.c instead of this */
  26. +#define DBG_RAW LELEM(0)
  27. +#define DBG_PRIVATE LELEM(20)
  28. #endif
  29. /* State of exchanges