if (SQLITE_OK != ret) {
if (*db_handle) {
- MSAPI_DBG_ERR("[error when register busy handler] %s\n", sqlite3_errmsg(*db_handle));
+ MSAPI_DBG_ERR("[error when register busy handler] %s", sqlite3_errmsg(*db_handle));
}
db_util_close(*db_handle);
/* Get Pid */
pid = getpid();
if (ms_get_cmdline_from_proc(pid, process_name)) {
- MS_DBG_ERR("%s: Read process name failed pid[%d]\n", __func__, pid);
+ MS_DBG_ERR("%s: Read process name failed pid[%d]", __func__, pid);
return MS_MEDIA_ERR_INTERNAL;
}
appid = process_name;
ret = ms_get_extract_list(handle, storage_id, storage_type, scan_type, path, burst, uid, (void*)&data_array);
if (ret != MS_MEDIA_ERR_NONE) {
- MS_DBG_ERR("ms_get_extract_list failed!!!\n");
+ MS_DBG_ERR("ms_get_extract_list failed!!!");
return ret;
}
if (data_array == NULL) {
- MS_DBG_ERR("data_array is NULL!!!\n");
+ MS_DBG_ERR("data_array is NULL!!!");
return MS_MEDIA_ERR_INTERNAL;
}
/* insert into media DB */
ret = ms_scan_validate_item(handle, storage_id, path, uid);
if (ret != MS_MEDIA_ERR_NONE) {
- MS_DBG_ERR("failed to update db : %d\n", scan_type);
+ MS_DBG_ERR("failed to update db : %d", scan_type);
if (ret == MS_MEDIA_ERR_FILE_IO) {
MS_DBG_ERR("I/O ERROR COUNT[%d]", io_err_folder++);
}
/* insert into media DB */
ret = scan_function(handle, storage_id, path, uid);
if (ret != MS_MEDIA_ERR_NONE) {
- MS_DBG_ERR("failed to update db : %d\n", scan_type);
+ MS_DBG_ERR("failed to update db : %d", scan_type);
if (ret == MS_MEDIA_ERR_FILE_IO) {
MS_DBG_ERR("I/O ERROR COUNT[%d]", io_err_storage++);
}
ms_sys_get_uid(&uid);\r
\r
if (media_db_connect(&db_handle, uid, TRUE) != MS_MEDIA_ERR_NONE) {\r
- MS_DBG_ERR("Failed to connect DB\n");\r
+ MS_DBG_ERR("Failed to connect DB");\r
return MS_MEDIA_ERR_DB_CONNECT_FAIL;\r
}\r
\r
if (ms_cynara_enable_credentials_passing(sockfd) != MS_MEDIA_ERR_NONE) {
close(sockfd);
- MS_DBG_ERR("Failed to set up credentials passing\n");
+ MS_DBG_ERR("Failed to set up credentials passing");
return FALSE;
}
g_array_append_val(*added_list, storage_path);
}
} else {
- MS_DBG_ERR(" FAILED TO usb_device_list_get_first \n");
+ MS_DBG_ERR(" FAILED TO usb_device_list_get_first");
}
} else {
if (0 == usb_device_list_get_next(list, &device) && device != NULL) {
g_array_append_val(*added_list, storage_path);
}
} else {
- MS_DBG_ERR(" FAILED TO usb_device_list_get_next \n");
+ MS_DBG_ERR(" FAILED TO usb_device_list_get_next");
}
}
}
uid_t uid = MEDIA_DEFAULT_UID;
if (!ms_config_get_int(MS_VCONF_KEY_RESET_STATUS, &value)) {
- MS_DBG_ERR("get db/media_server/reset_status failed\n");
+ MS_DBG_ERR("get db/media_server/reset_status failed");
return false;
}
- MS_DBG_WARN("db/media_server/reset_status is [%d]\n", value);
+ MS_DBG_WARN("db/media_server/reset_status is [%d]", value);
if (value == 1 || value == 2) {
MS_DBG_WARN("POWER_OFF_REASON_FACTORY_RESET or SERVICE RESET");
ms_reset_mediadb(uid);
if (!ms_config_set_int(MS_VCONF_KEY_RESET_STATUS, 0)) {
- MS_DBG_ERR("set db/media_server/reset_status failed\n");
+ MS_DBG_ERR("set db/media_server/reset_status failed");
return false;
}
}
- MS_DBG_WARN("end of __ms_deal_reset_status\n");
+ MS_DBG_WARN("end of __ms_deal_reset_status");
return true;
}
}
if ((pid = fork()) < 0) {
- MS_DBG_ERR("Fork error\n");
+ MS_DBG_ERR("Fork error");
g_mutex_unlock(&scanner_mutex);
} else if (pid > 0) {
/* parent process */