int ms_get_folder_id(void **handle, const char *storage_id, const char *path, char **folder_id);
int ms_get_media_type(void **handle, const char *path, int *media_type);
-/****************************************************************************************************
-FOR BULK COMMIT
-*****************************************************************************************************/
+/* FOR BULK COMMIT */
void ms_register_start(void **handle, ms_noti_switch_e noti_status, int pid);
void ms_register_end(void **handle, uid_t uid);
void ms_validate_start(void **handle);
pos = strstr(buf, EXT);
if (pos == NULL) {
- MS_DBG_ERR("This is not shared object library.");
+ MS_DBG_ERR("This is not shared object library");
name = NULL;
return -1;
} else {
return res;
}
-/****************************************************************************************************
-FOR BULK COMMIT
-*****************************************************************************************************/
-
+/* FOR BULK COMMIT */
void ms_register_start(void **handle, ms_noti_switch_e noti_status, int pid)
{
int lib_index;
if (r == NULL) {
r = setlocale(LC_ALL, lang);
if (r != NULL)
- MS_DBG_WARN("*****appcore setlocale=%s", r);
+ MS_DBG_WARN("Appcore setlocale[%s]", r);
}
free(lang);
}
#ifdef _USE_DEVICED_DBUS
static void __msc_usb_remove_event(const char *mount_path)
{
- MS_DBG_WARN("===========================================================");
MS_DBG_WARN("USB REMOVED, mountpath : %s", mount_path);
- MS_DBG_WARN("===========================================================");
int update_status = -1;
int remain_request = 0;
mount_path = usb_device_get_mountpath(usb_device);
if (!strcmp(action, "blocked")) {
- MS_DBG_WARN("===========================================================");
MS_DBG_ERR("USB BLOCKED, mountpath : %s", mount_path);
- MS_DBG_WARN("===========================================================");
int status = -1;
if (!ms_config_get_int(VCONFKEY_FILEMANAGER_DB_STATUS, &status)) {
msc_set_cancel_extract_item(mount_path, -1);
}
} else if (!strcmp(action, "unmounted")) {
- MS_DBG_WARN("===========================================================");
MS_DBG_ERR("USB UNMOUNT , mountpath : %s", mount_path);
- MS_DBG_WARN("===========================================================");
}
free_usb_device_h(usb_device);
int err = -1;
int fd = -1;
- MS_DBG_WARN("[No-Error] ========== Scanner start ========");
+ MS_DBG_INFO("Scanner-V2 start");
__msc_add_event_receiver(NULL);
storage_extract_thread = g_thread_new("storage_extract_thread", (GThreadFunc)msc_storage_extract_thread, NULL);
folder_extract_thread = g_thread_new("folder_extract_thread", (GThreadFunc)msc_folder_extract_thread, NULL);
- MS_DBG_INFO("scanner v2 is ready");
-
+ MS_DBG_INFO("Scanner-V2 is ready");
msc_send_ready();
- MS_DBG_WARN("[No-Error] ========== Scanner is ready ========");
-
- MS_DBG_WARN("[No-Error] ========== Scanner is running ========");
+ MS_DBG_INFO("Scanner-V2 is running");
#ifdef _SET_VIP_PROCESS
/*Set VIP Process*/
MS_DBG_ERR("set power off status to 0 failed");
}
- MS_DBG_WARN("SCANNER V2 IS END");
+ MS_DBG_INFO("Scanner-V2 is shutting down");
return 0;
}
scan_thread = g_thread_new("scanner_thread", (GThreadFunc)msc_directory_scan_thread, NULL);
register_thread = g_thread_new("register_thread", (GThreadFunc)msc_register_thread, NULL);
- MS_DBG_INFO("scanner is ready");
-
+ MS_DBG_INFO("SCANNER is ready");
msc_send_ready();
-
- MS_DBG_WARN("*****************************************");
- MS_DBG_WARN("*** Scanner is running ***");
- MS_DBG_WARN("*****************************************");
+ MS_DBG_INFO("SCANNER is running");
g_main_loop_run(scanner_mainloop);
__msc_remove_event_receiver();
EXIT:
- MS_DBG_INFO("SCANNER IS END");
+ MS_DBG_INFO("SCANNER is shutting down");
return 0;
}
g_main_context_push_thread_default(context);
- MS_DBG("*******************************************");
- MS_DBG("*** Media Server DB thread is running ***");
- MS_DBG("*******************************************");
-
+ MS_DBG_INFO("Media Server DB thread is running");
db_thread_ready = TRUE;
g_main_loop_run(g_db_mainloop);
- MS_DBG("*** Media Server DB thread will be closed ***");
-
+ MS_DBG_INFO("Media Server DB thread is shutting down");
db_thread_ready = FALSE;
g_io_channel_shutdown(channel, FALSE, NULL);
g_source_set_callback(source, (GSourceFunc)_ms_dcm_agent_read_socket, NULL, NULL);
g_source_attach(source, context);
- MS_DBG("************************************");
- MS_DBG("*** DCM Agent thread is running ***");
- MS_DBG("************************************");
-
+ MS_DBG_INFO("DCM Agent thread is running");
g_main_loop_run(g_dcm_agent_loop);
-
- MS_DBG("DCM Agent thread is shutting down...");
+ MS_DBG_INFO("DCM Agent thread is shutting down");
/*close an IO channel & remove resources */
g_io_channel_shutdown(channel, FALSE, NULL);
#ifdef _USE_TVPD_MODE
ms_check_size_mediadb(uid, &db_size);
ms_get_remain_space(&free_space);
- MS_DBG_WARN("==========================");
- MS_DBG_WARN("DB SIZE : %lf", db_size);
- MS_DBG_WARN("DB LIMIT1 : %lf", MEDIA_DB_SIZE_LIMIT_1);
- MS_DBG_WARN("DB LIMIT2 : %lf", MEDIA_DB_SIZE_LIMIT_2);
- MS_DBG_WARN("FREE SPACE : %lf", free_space);
- MS_DBG_WARN("SPACE LIMIT : %lf", MEDIA_DB_SPACE_LIMIT);
- MS_DBG_WARN("==========================");
+ MS_DBG_WARN("DB SIZE[%lf] LIMIT1[%lf] LIMIT2[%lf] FREE SPACE[%lf] SPACE LIMIT[%lf]", db_size, MEDIA_DB_SIZE_LIMIT_1, MEDIA_DB_SIZE_LIMIT_2, free_space, MEDIA_DB_SPACE_LIMIT);
if (db_size > MEDIA_DB_SIZE_LIMIT_2) {
MS_DBG_ERR("THE SIZE OF MEDIA DB REACH THE LIMIT. RESET MEDIA DB.");
/*Active flush */
malloc_trim(0);
- MS_DBG_WARN("********************************");
- MS_DBG_WARN("*** Media Server is running ***");
- MS_DBG_WARN("********************************");
-
+ MS_DBG_INFO("Media Server is running");
ms_write_media_server_status();
if (!ms_config_set_int(MS_SERVER_STATUS, 1))
__ms_free_global_variable();
- MS_DBG_WARN("*** Media Server is stopped ***");
+ MS_DBG_INFO("Media Server is shutting down");
return 0;
}
if (kill(child_pid, SIGKILL) < 0) {
MS_DBG_ERR("kill failed[%d]", child_pid);
}
- MS_DBG_WARN("KILL SCANNER");
+ MS_DBG_INFO("KILL SCANNER");
} else {
MS_DBG_ERR("SCANNER IS ALREADY DEAD");
}
GIOChannel *res_channel = NULL;
GMainContext *res_context = NULL;
- MS_DBG_WARN("[No-Error] SCANNER is ready");
+ MS_DBG_INFO("SCANNER is ready");
scanner_ready = true;
scanner_cleaned = false;
g_source_set_callback(source, (GSourceFunc)_ms_thumb_agent_read_socket, NULL, NULL);
g_source_attach(source, context);
- MS_DBG("************************************");
- MS_DBG("*** Thumbnail Agent thread is running ***");
- MS_DBG("************************************");
-
+ MS_DBG_INFO("Thumbnail Agent thread is running");
g_main_loop_run(g_thumb_agent_loop);
-
- MS_DBG("Thumbnail Agent thread is shutting down...");
+ MS_DBG_INFO("Thumbnail Agent thread is shutting down");
/*close an IO channel*/
g_io_channel_shutdown(channel, FALSE, NULL);