[libbluray-devel] Remove double logging. Log only result.
hpi1
git at videolan.org
Mon Apr 3 14:28:19 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr 3 12:27:10 2017 +0300| [a70cb5cb22ba10a2b0a1e422efa8a2e4ed270b4b] | committer: hpi1
Remove double logging. Log only result.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a70cb5cb22ba10a2b0a1e422efa8a2e4ed270b4b
---
src/file/dl_posix.c | 6 ++----
src/file/dl_win32.c | 2 ++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/file/dl_posix.c b/src/file/dl_posix.c
index 200a888..f1852a4 100644
--- a/src/file/dl_posix.c
+++ b/src/file/dl_posix.c
@@ -39,12 +39,12 @@ static void *_dl_dlopen(const char *path)
{
void *result;
- BD_DEBUG(DBG_FILE, "searching for library '%s' ...\n", path);
-
result = dlopen(path, RTLD_LAZY);
if (!result) {
BD_DEBUG(DBG_FILE, "can't open library '%s': %s\n", path, dlerror());
+ } else {
+ BD_DEBUG(DBG_FILE, "opened library '%s'\n", path);
}
return result;
@@ -86,8 +86,6 @@ void *dl_dlopen(const char *path, const char *version)
continue;
}
- BD_DEBUG(DBG_FILE, "Attempting to open %s\n", name);
-
dll = _dl_dlopen (name);
X_FREE(name);
if (dll) {
diff --git a/src/file/dl_win32.c b/src/file/dl_win32.c
index 4bce555..6155ad6 100644
--- a/src/file/dl_win32.c
+++ b/src/file/dl_win32.c
@@ -89,6 +89,8 @@ void *dl_dlopen(const char *path, const char *version)
if (!result) {
char buf[128];
BD_DEBUG(DBG_FILE, "can't open library '%s': %s\n", path, dlerror(buf, sizeof(buf)));
+ } else {
+ BD_DEBUG(DBG_FILE, "opened library '%s'\n", path);
}
return result;
More information about the libbluray-devel
mailing list