All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] android: binder: Prefer __func__ to using hardcoded function name
@ 2017-12-29  9:03 Elad Wexler
  0 siblings, 0 replies; only message in thread
From: Elad Wexler @ 2017-12-29  9:03 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel, devel

Coding style fixup

Signed-off-by: Elad Wexler <elad.wexler@gmail.com>
---
 drivers/android/binder.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index bccec9d..a66ad3d 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -4631,7 +4631,7 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
 	return 0;
 
 err_bad_arg:
-	pr_err("binder_mmap: %d %lx-%lx %s failed %d\n",
+	pr_err("%s: %d %lx-%lx %s failed %d\n", __func__,
 	       proc->pid, vma->vm_start, vma->vm_end, failure_string, ret);
 	return ret;
 }
@@ -4641,7 +4641,7 @@ static int binder_open(struct inode *nodp, struct file *filp)
 	struct binder_proc *proc;
 	struct binder_device *binder_dev;
 
-	binder_debug(BINDER_DEBUG_OPEN_CLOSE, "binder_open: %d:%d\n",
+	binder_debug(BINDER_DEBUG_OPEN_CLOSE, "%s: %d:%d\n", __func__,
 		     current->group_leader->pid, current->pid);
 
 	proc = kzalloc(sizeof(*proc), GFP_KERNEL);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-29  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-29  9:03 [PATCH] android: binder: Prefer __func__ to using hardcoded function name Elad Wexler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.