From: Semun Lee Date: Thu, 18 Jan 2018 05:07:16 +0000 (+0900) Subject: Add printing log for dlopen failure X-Git-Tag: accepted/tizen/4.0/unified/20180118.142704~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F167506%2F1;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Add printing log for dlopen failure Change-Id: I1d49786c392fea93933a50495015bfac97f04230 Signed-off-by: Semun Lee --- diff --git a/src/launchpad_loader.c b/src/launchpad_loader.c index 6ad6284..8e75181 100644 --- a/src/launchpad_loader.c +++ b/src/launchpad_loader.c @@ -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()); + } } }