Updating dlog TAG from TEL_PLUGIN_DBUS_TAPI to DBUS_TAPI and added additional logs.
authorSuresh Kumar Narasimhaiah <suresh.n@samsung.com>
Sat, 16 Mar 2013 14:33:19 +0000 (20:03 +0530)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 08:10:28 +0000 (17:10 +0900)
CMakeLists.txt
src/desc-dbus.c
src/modem.c

index 35fea86..9e35443 100644 (file)
@@ -23,7 +23,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/include/ ${CMAKE_SOU
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wmissing-declarations -Wcast-align")
 
 ADD_DEFINITIONS("-DFEATURE_DLOG_DEBUG")
-ADD_DEFINITIONS("-DTCORE_LOG_TAG=\"TEL_PLUGIN_DBUS_TAPI\"")
+ADD_DEFINITIONS("-DTCORE_LOG_TAG=\"DBUS_TAPI\"")
 ADD_DEFINITIONS("-DPLUGIN_VERSION=${VERSION}")
 
 MESSAGE(${CMAKE_C_FLAGS})
index 7c3fe5c..d26e902 100644 (file)
@@ -259,6 +259,8 @@ static TReturn send_notification(Communicator *comm, CoreObject *source, enum tc
        const char *cp_name;
        char *path = NULL;
 
+       dbg("Notification!!! (command = 0x%x, data_len = %d)", command, data_len);
+
        if (command == TNOTI_SERVER_ADDED_PLUGIN)
                p = (TcorePlugin *)data;
        else
@@ -267,8 +269,7 @@ static TReturn send_notification(Communicator *comm, CoreObject *source, enum tc
        cp_name = tcore_server_get_cp_name_by_plugin(p);
        if (cp_name == NULL)
                return TCORE_RETURN_FAILURE;
-
-       dbg("Notification!!! (command = 0x%x, data_len = %d)", command, data_len);
+       dbg("CP Name: [%s]", cp_name);
 
        ctx = tcore_communicator_ref_user_data(comm);
        if (ctx == NULL) {
@@ -276,7 +277,6 @@ static TReturn send_notification(Communicator *comm, CoreObject *source, enum tc
                return TCORE_RETURN_FAILURE;
        }
 
-       dbg("CP Name: [%s]", path);
        if (cp_name) {
                path = g_strdup_printf("%s/%s", MY_DBUS_PATH, cp_name);
        }
index 567db75..576050c 100644 (file)
@@ -366,6 +366,9 @@ gboolean dbus_plugin_modem_notification(struct custom_data *ctx, const char *plu
                        telephony_modem_emit_dun_external_call(modem, TRUE);
                        break;
 
+               case TNOTI_MODEM_ADDED:
+                       break;
+
                default:
                        dbg("not handled command[0x%x]", command);
                break;