[ITC][webrtc][non-ACR] Remove FPRINTF() to avoid crash 77/291877/1
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 24 Apr 2023 09:37:18 +0000 (18:37 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 24 Apr 2023 09:37:55 +0000 (18:37 +0900)
Sometimes a crash occurs like below.
...
 5: fclose + 0x154 (0x0000007f8a8180b4) [/usr/lib64/libc-2.30.so] + 0x640b4
 6: (0x000000558329269c) [/opt/usr/globalapps/org.tizen.webrtc-native-itc/bin/webrtc-native-itc] + 0x669c

Change-Id: Id11a44684fb8bad36364c0596e1c6183011bf35f

src/itc/webrtc/ITs-webrtc.c

index 5b726d31a3ac2c3a1e16cc4ee78aa1f4e94b56b3..c05b1949c7068767988fc757437a8f81a34f2ded 100755 (executable)
@@ -117,7 +117,6 @@ static void webrtcIceCandidateCB(webrtc_h webrtc, const char *candidate, void *u
 {
        GList **candidates = (GList **)user_data;
 
-       FPRINTF("[Line : %d][%s] Callback webrtcIceCandidateCB called\\n", __LINE__, API_NAMESPACE);
        dlog_print(DLOG_DEBUG, "NativeTCT", "[%s(%d)] webrtc[%p], candidate[%p]", __FUNCTION__, __LINE__, webrtc, candidates);
 
        if (candidates)
@@ -187,7 +186,7 @@ static void webrtcSignalingStateChangeCB(webrtc_h webrtc, webrtc_signaling_state
 static void __foreach_ice_candidate(gpointer data, gpointer user_data)
 {
        webrtc_add_ice_candidate((webrtc_h)user_data, (const char *)data);
-       FPRINTF("[Line : %d][%s] add ice candidate: %s\\n", __LINE__, API_NAMESPACE, (const char *)data);
+
        dlog_print(DLOG_DEBUG, "NativeTCT", "[%s(%d)] add ice candidate: %s", __FUNCTION__, __LINE__, (const char *)data);
 }