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);
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);
/* 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;
}
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);
} 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;
}
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: