From 404f7de30184070ba347002c2246be4dff3115dd Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Tue, 11 Sep 2018 13:17:02 +0900 Subject: [PATCH] Modify log message Signed-off-by: INSUN PYO Change-Id: Iacfc34bdd9ca9978d9ef6c83e35501cb2db4399c --- src/usb_host.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.34.1