int uttid = g_utt.uttid;
int tmp_pid = ttsd_data_get_pid(uid);
- SLOG(LOG_ERROR, tts_tag(), "[SERVER ERROR] Error msg from engine, pid(%d), uid(%d), uttid(%d), error(%d), msg(%s)", tmp_pid, uid, uttid, error, msg);
+ SLOG(LOG_ERROR, tts_tag(), "[SERVER ERROR] Error msg from engine, pid(%d), uid(%d), uttid(%d), error(%d), msg(%s)", tmp_pid, uid, uttid, error, (NULL == msg ? "NULL" : msg));
__server_set_synth_control(TTSD_SYNTHESIS_CONTROL_EXPIRED);
{
int ret;
- if (NULL == msg) {
- SLOG(LOG_ERROR, tts_tag(), "[ERROR] Input parameter is null");
- return TTSE_ERROR_INVALID_PARAMETER;
- }
-
ret = ttsd_send_error(error, msg);
if (0 != ret) {