From 58daab21cd043e1dc37024a7f99b396788372918 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Mar 2024 14:19:48 +0100 Subject: Merging upstream version 1.44.3. Signed-off-by: Daniel Baumann --- cli/cli.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'cli/cli.c') diff --git a/cli/cli.c b/cli/cli.c index 288173b1e..2efa518e6 100644 --- a/cli/cli.c +++ b/cli/cli.c @@ -3,25 +3,18 @@ #include "cli.h" #include "daemon/pipename.h" -void error_int(int is_collector __maybe_unused, const char *prefix __maybe_unused, const char *file __maybe_unused, const char *function __maybe_unused, const unsigned long line __maybe_unused, const char *fmt, ... ) { - FILE *fp = stderr; - +void netdata_logger(ND_LOG_SOURCES source, ND_LOG_FIELD_PRIORITY priority, const char *file, const char *function, unsigned long line, const char *fmt, ... ) { va_list args; - va_start( args, fmt ); - vfprintf(fp, fmt, args ); - va_end( args ); + va_start(args, fmt); + vfprintf(stderr, fmt, args ); + va_end(args); } #ifdef NETDATA_INTERNAL_CHECKS uint64_t debug_flags; -void debug_int( const char *file __maybe_unused , const char *function __maybe_unused , const unsigned long line __maybe_unused, const char *fmt __maybe_unused, ... ) -{ - -} - -void fatal_int( const char *file __maybe_unused, const char *function __maybe_unused, const unsigned long line __maybe_unused, const char *fmt __maybe_unused, ... ) +void netdata_logger_fatal( const char *file __maybe_unused, const char *function __maybe_unused, const unsigned long line __maybe_unused, const char *fmt __maybe_unused, ... ) { abort(); }; -- cgit v1.2.3