mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: "Samuel Iglesias Gonsálvez" <siglesias@igalia.com>
Cc: Sherwin Soltani <sherwin@wybc.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
	swetland@google.com
Subject: Re: [PATCH] drivers: staging: android: binder.c: fix printk macros
Date: Tue, 26 Jun 2012 15:03:06 -0700	[thread overview]
Message-ID: <20120626220306.GA14221@kroah.com> (raw)
In-Reply-To: <1340692980.4177.6.camel@fourier.local.igalia.com>

On Tue, Jun 26, 2012 at 08:43:00AM +0200, Samuel Iglesias Gonsálvez wrote:
> On Tue, 2012-06-26 at 02:00 -0400, Sherwin Soltani wrote:
> > Change printk() messages to pr_* macros.
> > 
> > Signed-off-by: Sherwin Soltani <sherwin@wybc.com>
> > ---
> >  drivers/staging/android/binder.c |   54 +++++++++++++++++++-------------------
> >  1 file changed, 27 insertions(+), 27 deletions(-)
> > 
> > diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
> > index c283212..574e992 100644
> > --- a/drivers/staging/android/binder.c
> > +++ b/drivers/staging/android/binder.c
> > @@ -124,13 +124,13 @@ module_param_call(stop_on_user_error, binder_set_stop_on_user_error,
> >  #define binder_debug(mask, x...) \
> >  	do { \
> >  		if (binder_debug_mask & mask) \
> > -			printk(KERN_INFO x); \
> > +			pr_info(x); \
> >  	} while (0)
> >  
> >  #define binder_user_error(x...) \
> >  	do { \
> >  		if (binder_debug_mask & BINDER_DEBUG_USER_ERROR) \
> > -			printk(KERN_INFO x); \
> > +			pr_info(x); \
> >  		if (binder_stop_on_user_error) \
> >  			binder_stop_on_user_error = 2; \
> >  	} while (0)
> > @@ -418,7 +418,7 @@ repeat:
> >  #if 1
> >  	/* Sanity check */
> >  	if (fdt->fd[fd] != NULL) {
> > -		printk(KERN_WARNING "get_unused_fd: slot %d not NULL!\n", fd);
> > +		pr_warn("get_unused_fd: slot %d not NULL!\n", fd);
> >  		fdt->fd[fd] = NULL;
> >  	}
> >  #endif
> > @@ -644,7 +644,7 @@ static int binder_update_page_range(struct binder_proc *proc, int allocate,
> >  		goto free_range;
> >  
> >  	if (vma == NULL) {
> > -		printk(KERN_ERR "binder: %d: binder_alloc_buf failed to "
> > +		pr_err("binder: %d: binder_alloc_buf failed to "
> >  		       "map pages in userspace, no vma\n", proc->pid);
> 
> Instead of using the "binder: " prefix here and there and now that you
> have changed to pr_* functions, you can define the pr_fmt macro at the
> beginning of the file (just before the #include sentences).

That's a good idea, but not necessary for this patch.  A follow-on patch
perhaps :)

greg k-h

      reply	other threads:[~2012-06-26 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26  6:00 Sherwin Soltani
2012-06-26  6:43 ` Samuel Iglesias Gonsálvez
2012-06-26 22:03   ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120626220306.GA14221@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=devel@driverdev.osuosl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sherwin@wybc.com \
    --cc=siglesias@igalia.com \
    --cc=swetland@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome