Fix wrong log message 40/202640/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Apr 2019 06:13:25 +0000 (15:13 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Apr 2019 06:13:25 +0000 (15:13 +0900)
Change-Id: I673a1d3512c3d83d560d9e89ff0adb5c9bc30bfa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launchpad_loader.c

index 0fffb16ea97bfa6730c44239a727aa706549c55b..849b0508b9e0306adc49bd27072fc2f54b372654 100644 (file)
@@ -173,11 +173,12 @@ static void __preload_lib(bundle *b)
                        continue;
                }
 
-               _D("preload %s# - handle : %p", so_array[i], handle);
                handle = dlopen(so_array[i], RTLD_NOW | RTLD_NODELETE);
                if (!handle) {
                        _E("failed to load: %s, err: %s",
                                so_array[i], dlerror());
+               } else {
+                       _D("preload %s# - handle : %p", so_array[i], handle);
                }
        }
 }