Skip to content

Commit

Permalink
Print skel name during handle close
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
quic-bkumar committed Aug 6, 2024
1 parent 9286364 commit e70937b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fastrpc_apps_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit e70937b

Please sign in to comment.