From: sangwook lee Date: Thu, 9 Mar 2023 02:33:24 +0000 (+0900) Subject: Add proper log depends on 32 or 64 X-Git-Tag: accepted/tizen/unified/20230309.161431^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F289506%2F1;p=sdk%2Ftarget%2Fsdbd.git Add proper log depends on 32 or 64 Change-Id: I04bd68e9ca758b4e74e6d22e55742f6420e76171 Signed-off-by: sangwook lee --- diff --git a/src/plugin.c b/src/plugin.c index 222e9e3..ee14893 100755 --- a/src/plugin.c +++ b/src/plugin.c @@ -101,7 +101,12 @@ static int load_plugin_not_default() //g_plugin_handle = dlopen ( PLUGIN_PATH, RTLD_NOW ); if ( g_plugin_handle == NULL ) { - E ( "failed to dlopen(%s). error: %s\n", PLUGIN_PATH, dlerror() ); + if ((int)(sizeof(void_pointer)) == 8) { + E ( "failed to dlopen(%s). error: %s\n", PLUGIN_PATH64, dlerror() ); + } + else { + E ( "failed to dlopen(%s). error: %s\n", PLUGIN_PATH, dlerror() ); + } return 0; } @@ -167,6 +172,7 @@ void readxml() { void load_sdbd_plugin() { int ret; + void* void_pointer; plugin_cmd_hashtable = hashtable_create ( ht_size_31 ); @@ -179,8 +185,12 @@ void load_sdbd_plugin() I ( "using default plugin interface.\n" ); } else { - D ( "using sdbd plugin interface.(%s)\n", PLUGIN_PATH ); - + if ((int)(sizeof(void_pointer)) == 8) { + D ( "using sdbd plugin interface.(%s)\n", PLUGIN_PATH64 ); + } + else { + D ( "using sdbd plugin interface.(%s)\n", PLUGIN_PATH ); + } plugin_init_proc ( plugin_event_handler, plugin_register_command ); readxml(); }