diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2011-11-16 17:38:52 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2011-11-17 15:22:54 +0200 |
commit | 73ee896b61ab4e67fb951aab92ee247916ee5b76 (patch) | |
tree | 991bbf8e42d63db0330c7a8c2dc89afc512b5efa /sal | |
parent | 9a52bf1d5cfdd01c6d5ce6e41bf1a432f9a29e7f (diff) |
Improve a diagnostic log message
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/android/jni/lo-bootstrap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/android/jni/lo-bootstrap.c b/sal/osl/android/jni/lo-bootstrap.c index ad355686cd18..c5e19057984b 100644 --- a/sal/osl/android/jni/lo-bootstrap.c +++ b/sal/osl/android/jni/lo-bootstrap.c @@ -479,7 +479,7 @@ lo_dlopen(const char *library) char *full_name; char **needed; int i; - int found = 0; + int found; rover = loaded_libraries; while (rover != NULL && @@ -491,6 +491,7 @@ lo_dlopen(const char *library) /* LOGI("lo_dlopen(%s)", library); */ + found = 0; if (library[0] == '/') { full_name = strdup(library); @@ -537,7 +538,7 @@ lo_dlopen(const char *library) LOGI("dlopen(%s) = %p", full_name, p); free(full_name); if (p == NULL) - LOGI("lo_dlopen: %s", dlerror()); + LOGI("lo_dlopen: Error from dlopen(%s): %s", library, dlerror()); new_loaded_lib = malloc(sizeof(*new_loaded_lib)); new_loaded_lib->name = strdup(library); |