From: INSUN PYO Date: Tue, 11 Sep 2018 04:17:02 +0000 (+0900) Subject: Modify log message X-Git-Tag: submit/tizen/20180927.030248~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F33%2F188833%2F3;p=platform%2Fcore%2Fapi%2Fusb-host.git Modify log message Signed-off-by: INSUN PYO Change-Id: Iacfc34bdd9ca9978d9ef6c83e35501cb2db4399c --- diff --git a/src/usb_host.c b/src/usb_host.c index d56835b..bd7f3ed 100755 --- a/src/usb_host.c +++ b/src/usb_host.c @@ -454,6 +454,7 @@ static void fd_removed_cb(int fd, void *user_data) 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); @@ -467,13 +468,14 @@ static void fd_removed_cb(int fd, void *user_data) 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)