summaryrefslogtreecommitdiffstats
path: root/drivers/android
diff options
context:
space:
mode:
authorRamji Jiyani <ramjiyani@google.com>2021-08-03 00:04:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-08-03 16:29:25 +0200
commit1ae14df56cc3e87d56f3c159803a289021f8ef7d (patch)
tree65871fafb7491f696d1f620a48d13759202559c9 /drivers/android
parentsamples: mei: don't wait on read completion upon write. (diff)
downloadlinux-1ae14df56cc3e87d56f3c159803a289021f8ef7d.tar.xz
linux-1ae14df56cc3e87d56f3c159803a289021f8ef7d.zip
binder: Add invalid handle info in user error log
In the case of a failed transaction, only the thread and process id are logged. Add the handle info for the reference to the target node in user error log to aid debugging. Acked-by: Todd Kjos <tkjos@google.com> Signed-off-by: Ramji Jiyani <ramjiyani@google.com> Link: https://lore.kernel.org/r/20210802220446.1938347-1-ramjiyani@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
-rw-r--r--drivers/android/binder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index bcec598b89f2..d9030cb6b1e4 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2547,8 +2547,8 @@ static void binder_transaction(struct binder_proc *proc,
ref->node, &target_proc,
&return_error);
} else {
- binder_user_error("%d:%d got transaction to invalid handle\n",
- proc->pid, thread->pid);
+ binder_user_error("%d:%d got transaction to invalid handle, %u\n",
+ proc->pid, thread->pid, tr->target.handle);
return_error = BR_FAILED_REPLY;
}
binder_proc_unlock(proc);