Fix invalid format string 05/194805/1 accepted/tizen_unified tizen accepted/tizen/unified/20181211.141141 submit/tizen/20181211.060945
authorSeungbae Shin <seungbae.shin@samsung.com>
Fri, 7 Dec 2018 07:44:20 +0000 (16:44 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 7 Dec 2018 07:44:50 +0000 (16:44 +0900)
[Version] Release 0.3.3
[Issue Type] Build

Change-Id: I4c4cf0500de420fd73b2d192fea3add5fcd010d6

packaging/audio-session-manager.spec
src/audio-session-mgr.c

index 73e6dc7..d15f12f 100644 (file)
@@ -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
index 493df71..073eb7e 100755 (executable)
@@ -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: