summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungbae Shin <seungbae.shin@samsung.com>2018-12-07 07:44:20 (GMT)
committerSeungbae Shin <seungbae.shin@samsung.com>2018-12-07 07:44:50 (GMT)
commit1b7e0e99f33a596c527b70f2831e3e7433fdb5a5 (patch)
treefd8fc4dc12ea428502840959509f4cfadef0003d
parent568852f0ea4a20d01445abe0957b55e7771436c3 (diff)
downloadaudio-session-manager-1b7e0e99f33a596c527b70f2831e3e7433fdb5a5.zip
audio-session-manager-1b7e0e99f33a596c527b70f2831e3e7433fdb5a5.tar.gz
audio-session-manager-1b7e0e99f33a596c527b70f2831e3e7433fdb5a5.tar.bz2
[Version] Release 0.3.3 [Issue Type] Build Change-Id: I4c4cf0500de420fd73b2d192fea3add5fcd010d6
-rw-r--r--packaging/audio-session-manager.spec2
-rwxr-xr-xsrc/audio-session-mgr.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/packaging/audio-session-manager.spec b/packaging/audio-session-manager.spec
index 73e6dc7..d15f12f 100644
--- a/packaging/audio-session-manager.spec
+++ b/packaging/audio-session-manager.spec
@@ -1,6 +1,6 @@
Name: audio-session-manager
Summary: Audio Session Manager
-Version: 0.3.2
+Version: 0.3.3
Release: 0
Group: Multimedia/Service
License: Apache-2.0
diff --git a/src/audio-session-mgr.c b/src/audio-session-mgr.c
index 493df71..073eb7e 100755
--- a/src/audio-session-mgr.c
+++ b/src/audio-session-mgr.c
@@ -222,7 +222,7 @@ static gboolean asm_callback_handler( gpointer d)
count = read(data->fd, &buf, sizeof(int));
if (count != sizeof(int)) {
- debug_log("read %d/%d", count, sizeof(int));
+ debug_log("read %d/%zu", count, sizeof(int));
}
handle = (int)( buf & 0x0000ffff);
@@ -328,7 +328,7 @@ static gboolean watch_callback_handler( gpointer d)
count = read(data->fd, &buf, sizeof(int));
if (count != sizeof(int)) {
- debug_log("read %d/%d", count, sizeof(int));
+ debug_log("read %d/%zu", count, sizeof(int));
}
handle = (int)( buf & 0x0000ffff);
@@ -453,7 +453,7 @@ static bool __ASM_add_sound_callback(int index, int fd, gushort events, gLoopPol
/* 4. set callback */
g_source_set_callback(g_src, p_gloop_poll_handler,(gpointer)g_poll_fd, NULL);
- debug_log(" g_malloc:g_src_funcs(%#X),g_poll_fd(%#X) g_source_add_poll:g_src_id(%d) g_source_set_callback:errno(%d)",
+ debug_log(" g_malloc:g_src_funcs(%p),g_poll_fd(%p) g_source_add_poll:g_src_id(%u) g_source_set_callback:errno(%d)",
g_src_funcs, g_poll_fd, gsource_handle, errno);
return true;
}
@@ -494,7 +494,7 @@ init_handle:
debug_warning(" failed to g_source_destroy(), asm_src(0x%p)", ASM_sound_handle[index].asm_src);
}
}
- debug_log(" g_free : g_src_funcs(%#X), g_poll_fd(%#X)", g_src_funcs, g_poll_fd);
+ debug_log(" g_free : g_src_funcs(%p), g_poll_fd(%p)", g_src_funcs, g_poll_fd);
if (g_src_funcs) {
g_free(g_src_funcs);
@@ -1499,11 +1499,11 @@ bool ASM_attach_callback(ASM_sound_events_t sound_event, ASM_sound_cb_t callback
} else {
if (error_code)
*error_code = ERR_ASM_ALREADY_REGISTERED;
- debug_error("asm_callback was already registered(0x%x)", ASM_sound_handle[asm_index].asm_callback);
+ debug_error("asm_callback was already registered(%p)", ASM_sound_handle[asm_index].asm_callback);
return false;
}
- debug_msg(">>>> Pid(%d), Handle(%d), Event(%s), Callback(0x%x)", ASM_sound_handle[asm_index].asm_tid, ASM_sound_handle[asm_index].handle,
+ debug_msg(">>>> Pid(%d), Handle(%d), Event(%s), Callback(%p)", ASM_sound_handle[asm_index].asm_tid, ASM_sound_handle[asm_index].handle,
ASM_sound_events_str[ASM_sound_handle[asm_index].sound_event], ASM_sound_handle[asm_index].asm_callback);
return true;
@@ -1644,7 +1644,7 @@ bool ASM_set_sound_state_ex (const int asm_handle, ASM_sound_events_t sound_even
}
if (sound_state == ASM_STATE_PLAYING ) {
- debug_log( "sound_state is PLAYING, func(0x%x)", func);
+ debug_log( "sound_state is PLAYING, func(%p)", func);
switch (asm_rcv_msg.data.result_sound_command) {
case ASM_COMMAND_PAUSE: