From 739590e6392b040faba9c5b3452eff2fce3968e5 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Fri, 3 Aug 2012 14:35:31 +0200 Subject: [PATCH] Do not hide library loading errors behind "developer" --- src/backends/unix/system.c | 4 ++-- src/backends/windows/system.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backends/unix/system.c b/src/backends/unix/system.c index 70be59b4..54586c44 100644 --- a/src/backends/unix/system.c +++ b/src/backends/unix/system.c @@ -513,7 +513,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle) if (!module) { - Com_DPrintf("%s failed: %s\n", __func__, dlerror()); + Com_Printf("%s failed: %s\n", __func__, dlerror()); return NULL; } @@ -523,7 +523,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle) if (!entry) { - Com_DPrintf("%s failed: %s\n", __func__, dlerror()); + Com_Printf("%s failed: %s\n", __func__, dlerror()); dlclose(module); return NULL; } diff --git a/src/backends/windows/system.c b/src/backends/windows/system.c index 01356038..9cde34c5 100644 --- a/src/backends/windows/system.c +++ b/src/backends/windows/system.c @@ -818,7 +818,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle) if (!module) { - Com_DPrintf("%s failed: LoadLibrary returned %lu on %s\n", + Com_Printf("%s failed: LoadLibrary returned %lu on %s\n", __func__, GetLastError(), path); return NULL; } @@ -829,7 +829,7 @@ Sys_LoadLibrary(const char *path, const char *sym, void **handle) if (!entry) { - Com_DPrintf("%s failed: GetProcAddress returned %lu on %s\n", + Com_Printf("%s failed: GetProcAddress returned %lu on %s\n", __func__, GetLastError(), path); FreeLibrary(module); return NULL;