* [PATCH] staging: android: binder: convert commented messages to pr_debug
@ 2014-02-19 3:49 SeongJae Park
2014-02-19 3:52 ` SeongJae Park
2014-02-19 15:24 ` Greg KH
0 siblings, 2 replies; 4+ messages in thread
From: SeongJae Park @ 2014-02-19 3:49 UTC (permalink / raw)
To: gregkh; +Cc: sachin.kamat, swetland, devel, linux-kernel, SeongJae Park
2 debugging messages were just commented out for normal case. Let them
be activated on debug mode without explicit code modification.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
---
drivers/staging/android/binder.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
index eaec1da..a56f941 100644
--- a/drivers/staging/android/binder.c
+++ b/drivers/staging/android/binder.c
@@ -2553,7 +2553,8 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
unsigned int size = _IOC_SIZE(cmd);
void __user *ubuf = (void __user *)arg;
- /*pr_info("binder_ioctl: %d:%d %x %lx\n", proc->pid, current->pid, cmd, arg);*/
+ pr_debug("binder_ioctl: %d:%d %x %lx\n",
+ proc->pid, current->pid, cmd, arg);
trace_binder_ioctl(cmd, arg);
@@ -2787,8 +2788,8 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
proc->vma = vma;
proc->vma_vm_mm = vma->vm_mm;
- /*pr_info("binder_mmap: %d %lx-%lx maps %p\n",
- proc->pid, vma->vm_start, vma->vm_end, proc->buffer);*/
+ pr_debug("binder_mmap: %d %lx-%lx maps %p\n",
+ proc->pid, vma->vm_start, vma->vm_end, proc->buffer);
return 0;
err_alloc_small_buf_failed:
--
1.8.3.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: android: binder: convert commented messages to pr_debug
2014-02-19 3:49 [PATCH] staging: android: binder: convert commented messages to pr_debug SeongJae Park
@ 2014-02-19 3:52 ` SeongJae Park
2014-02-19 15:24 ` Greg KH
1 sibling, 0 replies; 4+ messages in thread
From: SeongJae Park @ 2014-02-19 3:52 UTC (permalink / raw)
To: Greg KH
Cc: sachin.kamat, Brian Swetland, linux-kernel@vger.kernel.org,
SeongJae Park, devel
Add devel@driverdev.osuosl.org as CC. Sorry if this duplicated mail
bothered your inbox.
On Wed, Feb 19, 2014 at 12:49 PM, SeongJae Park <sj38.park@gmail.com> wrote:
> 2 debugging messages were just commented out for normal case. Let them
> be activated on debug mode without explicit code modification.
>
> Signed-off-by: SeongJae Park <sj38.park@gmail.com>
> ---
> drivers/staging/android/binder.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
> index eaec1da..a56f941 100644
> --- a/drivers/staging/android/binder.c
> +++ b/drivers/staging/android/binder.c
> @@ -2553,7 +2553,8 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
> unsigned int size = _IOC_SIZE(cmd);
> void __user *ubuf = (void __user *)arg;
>
> - /*pr_info("binder_ioctl: %d:%d %x %lx\n", proc->pid, current->pid, cmd, arg);*/
> + pr_debug("binder_ioctl: %d:%d %x %lx\n",
> + proc->pid, current->pid, cmd, arg);
>
> trace_binder_ioctl(cmd, arg);
>
> @@ -2787,8 +2788,8 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
> proc->vma = vma;
> proc->vma_vm_mm = vma->vm_mm;
>
> - /*pr_info("binder_mmap: %d %lx-%lx maps %p\n",
> - proc->pid, vma->vm_start, vma->vm_end, proc->buffer);*/
> + pr_debug("binder_mmap: %d %lx-%lx maps %p\n",
> + proc->pid, vma->vm_start, vma->vm_end, proc->buffer);
> return 0;
>
> err_alloc_small_buf_failed:
> --
> 1.8.3.2
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: android: binder: convert commented messages to pr_debug
2014-02-19 3:49 [PATCH] staging: android: binder: convert commented messages to pr_debug SeongJae Park
2014-02-19 3:52 ` SeongJae Park
@ 2014-02-19 15:24 ` Greg KH
2014-02-20 4:12 ` SeongJae Park
1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2014-02-19 15:24 UTC (permalink / raw)
To: SeongJae Park; +Cc: sachin.kamat, swetland, devel, linux-kernel
On Wed, Feb 19, 2014 at 12:49:33PM +0900, SeongJae Park wrote:
> 2 debugging messages were just commented out for normal case. Let them
> be activated on debug mode without explicit code modification.
Are you sure this doesn't just always send the messages to the debug log
all the time now? Again, I'd just leave it alone...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: android: binder: convert commented messages to pr_debug
2014-02-19 15:24 ` Greg KH
@ 2014-02-20 4:12 ` SeongJae Park
0 siblings, 0 replies; 4+ messages in thread
From: SeongJae Park @ 2014-02-20 4:12 UTC (permalink / raw)
To: Greg KH; +Cc: Sachin Kamat, Brian Swetland, devel, linux-kernel@vger.kernel.org
On Thu, Feb 20, 2014 at 12:24 AM, Greg KH <gregkh@linuxfoundation.org> wrote:
> On Wed, Feb 19, 2014 at 12:49:33PM +0900, SeongJae Park wrote:
>> 2 debugging messages were just commented out for normal case. Let them
>> be activated on debug mode without explicit code modification.
>
> Are you sure this doesn't just always send the messages to the debug log
> all the time now? Again, I'd just leave it alone...
Yes, I sure it will not unless `DEBUG` defined. I tested it again.
Anyway, I know this patch makes just a little, trivial enhancement and
for somebody, it would not looks like enhancement at all. In these case,
I think maintainer's opinion must be respected.
Also, I agree the code as-is just works and not bad.
Thank you for reviewing and your opinion, Greg.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-20 4:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 3:49 [PATCH] staging: android: binder: convert commented messages to pr_debug SeongJae Park
2014-02-19 3:52 ` SeongJae Park
2014-02-19 15:24 ` Greg KH
2014-02-20 4:12 ` SeongJae Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox