[libbluray-devel] dl: reduce log level for failed symbol lookup

hpi1 git at videolan.org
Tue Jan 27 09:34:42 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Jan 27 10:31:18 2015 +0200| [f55ec39906b870d4d60c983194ae1d73ed72b56b] | committer: hpi1

dl: reduce log level for failed symbol lookup

In most cases it is not fatal error.

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=f55ec39906b870d4d60c983194ae1d73ed72b56b
---

 src/file/dl_posix.c |    2 +-
 src/file/dl_win32.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/file/dl_posix.c b/src/file/dl_posix.c
index 51d8b95..5be67ac 100644
--- a/src/file/dl_posix.c
+++ b/src/file/dl_posix.c
@@ -98,7 +98,7 @@ void *dl_dlsym(void *handle, const char *symbol)
     void *result = dlsym(handle, symbol);
 
     if (!result) {
-        BD_DEBUG(DBG_FILE | DBG_CRIT, "dlsym(%p, '%s') failed: %s\n", handle, symbol, dlerror());
+        BD_DEBUG(DBG_FILE, "dlsym(%p, '%s') failed: %s\n", handle, symbol, dlerror());
     }
 
     return result;
diff --git a/src/file/dl_win32.c b/src/file/dl_win32.c
index afb9e4e..fc8385f 100644
--- a/src/file/dl_win32.c
+++ b/src/file/dl_win32.c
@@ -81,7 +81,7 @@ void *dl_dlsym(void *handle, const char *symbol)
 
     if (!result) {
         char buf[128];
-        BD_DEBUG(DBG_FILE | DBG_CRIT, "GetProcAddress(%p, '%s') failed: %s\n", handle, symbol, dlerror(buf, sizeof(buf)));
+        BD_DEBUG(DBG_FILE, "GetProcAddress(%p, '%s') failed: %s\n", handle, symbol, dlerror(buf, sizeof(buf)));
     }
 
     return result;



More information about the libbluray-devel mailing list