From c840b1da6b0ea5ebf30eb028ecce6c47bcebf88c Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Mon, 30 Sep 2024 22:20:22 -0500 Subject: core: callbacks: make error_callback use log_output Make the error_callback function use log_output rather than vanilla printf. This unifies the engine's logging features into a single API. Signed-off-by: Danny Holman --- core/callbacks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/callbacks.c b/core/callbacks.c index 8cda252..03b7c46 100644 --- a/core/callbacks.c +++ b/core/callbacks.c @@ -1,6 +1,6 @@ #include -#include +#include void error_callback(int error, const char *desc) { - fprintf(stderr, "Error %d: %s\n", error, desc); + log_output(LOG_ERROR, "%d: %s\n", error, desc); } -- cgit v1.2.3