Add debug log for interface setting
authorJiwan Kim <ji-wan.kim@samsung.com>
Mon, 20 Mar 2017 04:57:27 +0000 (13:57 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 17 Jul 2017 02:35:36 +0000 (11:35 +0900)
src/mesh-interface.c
src/mesh-service-interface.c

index db65640..189fff0 100644 (file)
@@ -252,6 +252,13 @@ int mesh_interface_initialize(mesh_interface_s *info)
        info->softap_interface = g_strdup(MESH_DEFAULT_SOFTAP_INTERFACE);
        info->external_interface = g_strdup(MESH_DEFAULT_EXTERNAL_INTERFACE);
 
+       MESH_LOGD("Interface configuration for mesh network :");
+       MESH_LOGD("  Base    : [%s]", info->base_interface);
+       MESH_LOGD("  Mesh    : [%s]", info->mesh_interface);
+       MESH_LOGD("  Bridge  : [%s]", info->bridge_interface);
+       MESH_LOGD("  SoftAP  : [%s]", info->softap_interface);
+       MESH_LOGD("  External: [%s]", info->external_interface);
+
        return MESHD_ERROR_NONE;
 }
 
index 78df0d3..7d09b1e 100644 (file)
@@ -722,6 +722,13 @@ static gboolean _meshd_dbus_handle_set_interfaces(NetMesh *object,
        g_free(info->softap_interface);
        info->softap_interface = g_strdup(softap);
 
+       MESH_LOGD("Interface configuration for mesh network :");
+       MESH_LOGD("  Base    : [%s]", info->base_interface);
+       MESH_LOGD("  Mesh    : [%s]", info->mesh_interface);
+       MESH_LOGD("  Bridge  : [%s]", info->bridge_interface);
+       MESH_LOGD("  SoftAP  : [%s]", info->softap_interface);
+       MESH_LOGD("  External: [%s]", info->external_interface);
+
        net_mesh_complete_set_interfaces(object, invocation, ret);
 
        return TRUE;