Refactoring structures for monitoring and restrictions
[platform/core/connectivity/stc-manager.git] / plugin / exception / stc-plugin-exception.c
old mode 100755 (executable)
new mode 100644 (file)
index 783bc4f..4769c3e
@@ -99,8 +99,9 @@ static void __excn_hash_foreach_print(gpointer key, gpointer value,
        const char *process_name = key;
        const char *exe_type = value;
 
-       STC_LOGI("excn info => process_name [%s] exe_type [%s]",
-               process_name, exe_type);
+       if (STC_DEBUG_LOG)
+               STC_LOGI("Process_name[%s] exe_type[%s]",
+                       process_name, exe_type);
 }
 
 static void __excn_hash_printall(void)
@@ -205,7 +206,8 @@ static stc_error_e table_exceptions_foreach(const stc_exceptions_info_cb excepti
        char buf[EXCEPTION_BUF_MAX] = {0, };
 
        fp = fopen(EXCEPTION_STORAGE, "r");
-       ret_value_msg_if(!fp, STC_ERROR_FAIL, "Failed to open %s file");
+       ret_value_msg_if(!fp, STC_ERROR_FAIL, "Failed to open %s file",
+                        EXCEPTION_STORAGE);
 
        while (fgets(buf, sizeof(buf), fp) != NULL) {
                char *process_name, *exe_type;