Rough implementation of cyclical logging detection with minimal order 4 and refactor logging system.

This commit is contained in:
starfrost013
2025-01-08 01:59:50 +00:00
parent 108bba522f
commit 19aa366806
3 changed files with 206 additions and 14 deletions

View File

@@ -187,8 +187,9 @@ extern int config_changed; /* config has changed */
/* Function prototypes. */
#ifdef HAVE_STDARG_H
extern void pclog_ex(const char *fmt, va_list);
extern void fatal_ex(const char *fmt, va_list);
extern void pclog_ex(const char *fmt, va_list ap);
extern void pclog_ex_cyclic(const char* fmt, va_list ap);
extern void fatal_ex(const char *fmt, va_list ap);
#endif
extern void pclog_toggle_suppr(void);
extern void pclog(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));