Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Iacfc34bdd9ca9978d9ef6c83e35501cb2db4399c
struct gio_channel_wrap *ch;
usb_host_context_h ctx = user_data;
GList *l, *next;
+ bool found = false;
int rfd;
pthread_mutex_lock(&ctx->channel_list_lock);
g_io_channel_unref(ch->ch);
ctx->gio_channels = g_list_delete_link(ctx->gio_channels, l);
free(ch);
+ found = true;
}
l = next;
}
pthread_mutex_unlock(&ctx->channel_list_lock);
- _I("removed fd %d", fd);
+ _I("%s fd %d", found ? "removed" : "not found", fd);
}
int usb_host_create(usb_host_context_h *ctx)