From 5844d47d9f4ae140566ce4656ccd654a12e72227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0imek?= Date: Thu, 16 Jun 2022 15:25:34 +0200 Subject: [PATCH] Fix debug messages with arguments on linux --- src/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.cc b/src/debug.cc index 810a487..65caaeb 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -142,7 +142,7 @@ int debugPrint(const char* format, ...) #ifdef _WIN32 OutputDebugStringA(string); #else - printf("%s", string); + vprintf(string, args); #endif #endif rc = -1;