mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Samuel Iglesias Gonsálvez" <siglesias@igalia.com>
To: Sherwin Soltani <sherwin@wybc.com>
Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org,
	swetland@google.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: staging: android: binder.c: fix printk macros
Date: Tue, 26 Jun 2012 08:43:00 +0200	[thread overview]
Message-ID: <1340692980.4177.6.camel@fourier.local.igalia.com> (raw)
In-Reply-To: <1340690430-13016-1-git-send-email-sherwin@wybc.com>

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).

Regards,

Sam



  reply	other threads:[~2012-06-26  6:42 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 [this message]
2012-06-26 22:03   ` Greg KH

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=1340692980.4177.6.camel@fourier.local.igalia.com \
    --to=siglesias@igalia.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sherwin@wybc.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

all inboxes | Powered by JetHome®