From aa4cf99e635c3b2547339cdb82778a8aebd7a720 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 20 Dec 2014 06:24:33 -0800 Subject: Fix logging on Windows --- Alc/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/helpers.c') diff --git a/Alc/helpers.c b/Alc/helpers.c index 8811f3c3..aa8feebc 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -438,10 +438,10 @@ void al_print(const char *type, const char *func, const char *fmt, ...) str[sizeof(str)-1] = 0; wstr = FromUTF8(str); if(!wstr) - fputs(str, LogFile); + fprintf(LogFile, "AL lib: %s %s: %s", type, func, str); else { - fwprintf(LogFile, L"AL lib: %s %s: %ls", type, func, wstr); + fprintf(LogFile, "AL lib: %s %s: %ls", type, func, wstr); free(wstr); wstr = NULL; } -- cgit v1.2.3