Add proper log depends on 32 or 64 06/289506/1 accepted/tizen/unified/20230309.161431
authorsangwook lee <sangwook96.lee@samsung.com>
Thu, 9 Mar 2023 02:33:24 +0000 (11:33 +0900)
committersangwook lee <sangwook96.lee@samsung.com>
Thu, 9 Mar 2023 02:33:24 +0000 (11:33 +0900)
Change-Id: I04bd68e9ca758b4e74e6d22e55742f6420e76171
Signed-off-by: sangwook lee <sangwook96.lee@samsung.com>
src/plugin.c

index 222e9e38399c040de466ef9b45df53ad7af243e4..ee14893e49f90b9f6aff627c2e3c95af7cbce9af 100755 (executable)
@@ -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();
     }