From e70937b3d52493b9b38b4fa35625b7630202a74d Mon Sep 17 00:00:00 2001 From: Bharath Kumar V Date: Tue, 6 Aug 2024 09:26:25 +0000 Subject: [PATCH] Print skel name during handle close Currently, when calling remote_handle64_close, the skel name is not printed. Store skel lib name during handle open and print the same during handle close. Signed-off-by: Bharath Kumar V --- src/fastrpc_apps_user.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fastrpc_apps_user.c b/src/fastrpc_apps_user.c index 0f89753..3c99f32 100644 --- a/src/fastrpc_apps_user.c +++ b/src/fastrpc_apps_user.c @@ -836,9 +836,9 @@ static void print_open_handles(int domain) { pthread_mutex_lock(&hlist[domain].mut); QLIST_FOR_ALL(&hlist[domain].ql, pn) { hi = STD_RECOVER_REC(struct handle_info, qn, pn); - if (hi->lib_name) + if (hi->name) FARF(ALWAYS, "%s, handle 0x%"PRIx64"", - hi->lib_name, hi->remote); + hi->name, hi->remote); } pthread_mutex_unlock(&hlist[domain].mut); } @@ -1821,7 +1821,7 @@ int remote_handle_close_domain(int domain, remote_handle h) { int dlerr = 0, nErr = AEE_SUCCESS; size_t err_str_len = MAX_DLERRSTR_LEN * sizeof(char); uint64_t t_close = 0; - struct *hi = container_of((void*)(uint64_t)h, struct handle_info, local); + struct handle_info *hi = container_of((void*)(uint64_t)h, struct handle_info, local); char *name = hi->name, *nullname = "(null)"; remote_handle64 handle = INVALID_HANDLE;