From: hyunuktak Date: Thu, 17 Aug 2017 04:21:55 +0000 (+0900) Subject: [UTC][STC][Non-ACR][Modified log print] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ba5c653f4f7cb0350631bfb474cca0177b7fc7e;p=test%2Ftct%2Fnative%2Fapi.git [UTC][STC][Non-ACR][Modified log print] Change-Id: I93edd59a95ab0e868902db45cfcb13236c618c6e Signed-off-by: hyunuktak --- diff --git a/src/utc/stc/utc-stc-common.c b/src/utc/stc/utc-stc-common.c index f7d4087b9..d28be00e4 100755 --- a/src/utc/stc/utc-stc-common.c +++ b/src/utc/stc/utc-stc-common.c @@ -63,14 +63,14 @@ bool stc_check_feature_supported(char *key) int ret = system_info_get_platform_bool(key, &value); if (ret != SYSTEM_INFO_ERROR_NONE) { - STCLOG("[%s:%d] system_info_get_platform_bool failed, error returned = %d\\n", __FILE__, __LINE__, ret); + FPRINTF("[%s:%d] system_info_get_platform_bool failed, error returned = %d\\n", __FILE__, __LINE__, ret); return false; } if (value) { - STCLOG("[%s:%d] %s feature is supported\\n", __FILE__, __LINE__, key); + FPRINTF("[%s:%d] %s feature is supported\\n", __FILE__, __LINE__, key); } else { - STCLOG("[%s:%d] %s feature is not supported\\n", __FILE__, __LINE__, key); + FPRINTF("[%s:%d] %s feature is not supported\\n", __FILE__, __LINE__, key); } return value; diff --git a/src/utc/stc/utc-stc-common.h b/src/utc/stc/utc-stc-common.h index ed595da60..60dbd39a9 100755 --- a/src/utc/stc/utc-stc-common.h +++ b/src/utc/stc/utc-stc-common.h @@ -46,20 +46,12 @@ GMainLoop *g_pMainLoop; guint g_nTimeoutId; int g_nCallbackRet; -FILE *g_fpLog; - bool g_bFeatureSTC; stc_h g_hSTC; stc_stats_rule_h g_hRule; stc_error_e g_nCallbackRet; -#define STCLOG(...) {\ - g_fpLog = fopen(ERR_UTC_LOG, "a");\ - fprintf(g_fpLog, __VA_ARGS__);\ - fclose(g_fpLog);\ -} - #define RUN_GMAIN_LOOP {\ g_pMainLoop = g_main_loop_new(NULL, false);\ g_nTimeoutId = g_timeout_add(GMAINTIMEOUT, stc_callback_timeut, g_pMainLoop);\ @@ -75,14 +67,14 @@ stc_error_e g_nCallbackRet; #define PRINT_RETURN(api, ret) {\ if (STC_DEBUG) {\ - STCLOG("[%s:%d] %s returned = %s\\n",\ + FPRINTF("[%s:%d] %s returned = %s\\n",\ __FILE__, __LINE__, api, stc_get_error(ret));\ }\ } #define CHECK_RETURN(api, ret, val) {\ if (ret != val) {\ - STCLOG("[%s:%d] %s failed, error returned = %s\\n",\ + FPRINTF("[%s:%d] %s failed, error returned = %s\\n",\ __FILE__, __LINE__, api, stc_get_error(ret));\ return 1;\ } else {\