Add printing log for dlopen failure 06/167506/1
authorSemun Lee <semun.lee@samsung.com>
Thu, 18 Jan 2018 05:07:16 +0000 (14:07 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 18 Jan 2018 05:08:50 +0000 (14:08 +0900)
Change-Id: I1d49786c392fea93933a50495015bfac97f04230
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/launchpad_loader.c

index 6ad6284..8e75181 100644 (file)
@@ -202,6 +202,10 @@ static void __preload_lib(bundle *b)
        for (i = 0; i < len; i++) {
                handle = dlopen(so_array[i], RTLD_NOW | RTLD_NODELETE);
                _D("preload %s# - handle : %p", so_array[i], handle);
+               if (!handle) {
+                       _E("failed to load: %s, err: %s",
+                               so_array[i], dlerror());
+               }
        }
 }