connection = g_dbus_method_invocation_get_connection(invocation);
sender = g_dbus_method_invocation_get_sender(invocation);
- debug_error("connection = %p, sender = %s", connection, sender);
+ debug_msg("connection = %p, sender = %s", connection, sender);
value = g_dbus_connection_call_sync(connection, "org.freedesktop.DBus", "/org/freedesktop/DBus",
"org.freedesktop.DBus", "GetConnectionUnixProcessID",
g_variant_new("(s)", sender, NULL), NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &err);
if (value) {
g_variant_get(value, "(u)", &pid);
- debug_error("Sender PID = [%d]", pid);
+ debug_msg("Sender PID = [%d]", pid);
+ g_variant_unref(value);
} else {
debug_error("err code = %d, err msg = %s", err->code, err->message);
}
{
const char *method_name;
method_name = g_dbus_method_invocation_get_method_name(invocation);
- debug_error("Method Call '%s' success", method_name);
+ debug_msg("Method Call '%s' success", method_name);
g_dbus_method_invocation_return_value(invocation, params);
}
static void _method_call_return_error(GDBusMethodInvocation *invocation, int ret)
debug_log("emergent exit : pid %d", pid);
ret = __mm_sound_mgr_focus_ipc_emergent_exit(pid);
if (ret)
- debug_error("__mm_sound_mgr_focus_ipc_emergent_exit faild : 0x%x", ret);
+ debug_error("__mm_sound_mgr_focus_ipc_emergent_exit failed : 0x%x", ret);
debug_fleave();
}
{
guint oid;
- debug_log("Own name (%s) for focus-server", wellknown_name);
+ debug_msg("Own name (%s) for focus-server", wellknown_name);
oid = g_bus_own_name(bus_type, wellknown_name, G_BUS_NAME_OWNER_FLAGS_NONE,
on_bus_acquired, on_name_acquired, on_name_lost, NULL, NULL);
*owner_id = oid;
}
- debug_log("OwnerID (%d) for focus-server", *owner_id);
+ debug_msg("OwnerID (%d) for focus-server", *owner_id);
return MM_ERROR_NONE;
}
static void _mm_sound_mgr_focus_dbus_unown_name(guint oid)
{
- debug_log("Unown name for focus-server [%d]", oid);
+ debug_msg("Unown name for focus-server [%d]", oid);
if (oid > 0) {
g_bus_unown_name(oid);
}
int ret = MM_ERROR_NONE;
sigset_t old_mask, all_mask;
- debug_error("Got signal : signo(%d)", signo);
+ debug_warning("Got signal : signo(%d)", signo);
/* signal block */
break;
}
- debug_error("signal handling end");
+ debug_warning("signal handling end");
}
int mm_sound_client_initialize(void)
break;
}
- debug_error("volume type (%d) converted to stream type (%s)", volume_type, stream_type);
+ debug_msg("volume type (%d) converted to stream type (%s)", volume_type, stream_type);
}
int ret = MM_ERROR_NONE;
debug_fenter();
- debug_error("focus signal received, value = %d", value);
+ debug_msg("focus signal received, value = %d", value);
if (value == 1) {
ret = mm_sound_proxy_clear_focus(getpid());
tid = g_focus_sound_handle[focus_index].focus_tid;
if (changed_state != -1) {
- debug_error("Got and start CB : TID(%d), handle(%d), type(%d), state(%d,(DEACTIVATED(0)/ACTIVATED(1)), trigger(%s)", tid, cb_data.handle, cb_data.type, cb_data.state, cb_data.stream_type);
+ debug_msg("Got and start CB : TID(%d), handle(%d), type(%d), state(%d,(DEACTIVATED(0)/ACTIVATED(1)), trigger(%s)", tid, cb_data.handle, cb_data.type, cb_data.state, cb_data.stream_type);
if (g_focus_sound_handle[focus_index].focus_callback == NULL) {
debug_error("callback is null..");
g_mutex_unlock(&g_focus_sound_handle[focus_index].focus_lock);
return FALSE;
}
- debug_error("[CALLBACK(%p) START]",g_focus_sound_handle[focus_index].focus_callback);
+ debug_msg("[CALLBACK(%p) START]",g_focus_sound_handle[focus_index].focus_callback);
(g_focus_sound_handle[focus_index].focus_callback)(cb_data.handle, cb_data.type, cb_data.state, cb_data.stream_type, cb_data.option, cb_data.ext_info, g_focus_sound_handle[focus_index].user_data);
- debug_error("[CALLBACK END]");
+ debug_msg("[CALLBACK END]");
if (g_focus_session_interrupt_info.user_cb) {
- debug_error("sending session interrupt callback(%p)", g_focus_session_interrupt_info.user_cb);
+ debug_msg("sending session interrupt callback(%p)", g_focus_session_interrupt_info.user_cb);
(g_focus_session_interrupt_info.user_cb)(cb_data.state, cb_data.stream_type, false, g_focus_session_interrupt_info.user_data);
}
}
if (tmpfd < 0) {
char str_error[256];
strerror_r(errno, str_error, sizeof(str_error));
- debug_error("[RETCB][Failed(May Server Close First)]tid(%d) fd(%d) %s errno=%d(%s)\n", tid, tmpfd, filename2, errno, str_error);
+ debug_warning("[RETCB][Failed(May Server Close First)]tid(%d) fd(%d) %s errno=%d(%s)\n", tid, tmpfd, filename2, errno, str_error);
g_free(filename2);
g_mutex_unlock(&g_focus_sound_handle[focus_index].focus_lock);
return FALSE;
return FALSE;
}
- debug_error("lock focus_lock = %p", &g_focus_sound_handle[focus_index].focus_lock);
+ debug_msg("lock focus_lock = %p", &g_focus_sound_handle[focus_index].focus_lock);
g_mutex_lock(&g_focus_sound_handle[focus_index].focus_lock);
tid = g_focus_sound_handle[focus_index].focus_tid;
- debug_error("Got and start CB : TID(%d), handle(%d), type(%d), state(%d,(DEACTIVATED(0)/ACTIVATED(1)), trigger(%s)", tid, cb_data.handle, cb_data.type, cb_data.state, cb_data.stream_type);
+ debug_msg("Got and start CB : TID(%d), handle(%d), type(%d), state(%d,(DEACTIVATED(0)/ACTIVATED(1)), trigger(%s)", tid, cb_data.handle, cb_data.type, cb_data.state, cb_data.stream_type);
if (g_focus_sound_handle[focus_index].watch_callback == NULL) {
debug_msg("callback is null..");
(g_focus_sound_handle[focus_index].watch_callback)(cb_data.handle, cb_data.type, cb_data.state, cb_data.stream_type, cb_data.ext_info, g_focus_sound_handle[focus_index].user_data);
debug_msg("[CALLBACK END]");
if (g_focus_session_interrupt_info.user_cb) {
- debug_error("sending session interrupt callback(%p)", g_focus_session_interrupt_info.user_cb);
+ debug_msg("sending session interrupt callback(%p)", g_focus_session_interrupt_info.user_cb);
(g_focus_session_interrupt_info.user_cb)(cb_data.state, cb_data.stream_type, true, g_focus_session_interrupt_info.user_data);
}
}
if (tmpfd < 0) {
char str_error[256];
strerror_r(errno, str_error, sizeof(str_error));
- debug_error("[RETCB][Failed(May Server Close First)]tid(%d) fd(%d) %s errno=%d(%s)\n", tid, tmpfd, filename2, errno, str_error);
+ debug_warning("[RETCB][Failed(May Server Close First)]tid(%d) fd(%d) %s errno=%d(%s)\n", tid, tmpfd, filename2, errno, str_error);
g_free(filename2);
g_mutex_unlock(&g_focus_sound_handle[focus_index].focus_lock);
return FALSE;
#endif
}
- debug_error("unlock focus_lock = %p", &g_focus_sound_handle[focus_index].focus_lock);
+ debug_msg("unlock focus_lock = %p", &g_focus_sound_handle[focus_index].focus_lock);
g_mutex_unlock(&g_focus_sound_handle[focus_index].focus_lock);
debug_fleave();
if (g_focus_sound_handle[index].focus_fd == -1) {
debug_error("Open fail : index(%d), file open error(%d)", index, errno);
} else {
- debug_log("Open sucess : index(%d), filename(%s), fd(%d)", index, filename, g_focus_sound_handle[index].focus_fd);
+ debug_log("Open success : index(%d), filename(%s), fd(%d)", index, filename, g_focus_sound_handle[index].focus_fd);
}
g_free(filename);
filename = NULL;
debug_error("Close fail : index(%d)", index);
} else {
close(g_focus_sound_handle[index].focus_fd);
- debug_log("Close Sucess : index(%d)", index);
+ debug_log("Close Success : index(%d)", index);
}
if (is_for_watching) {