All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 3/3] staging: lustre: ptlrpc: Replace seq_printf() with seq_puts()
Date: Sat, 24 Oct 2015 18:38:56 -0700	[thread overview]
Message-ID: <20151025013856.GA8425@kroah.com> (raw)
In-Reply-To: <df74c544b09b3f3205ab904fe879869400af3d5f.1445183495.git.amitoj1606@gmail.com>

On Sun, Oct 18, 2015 at 09:33:37PM +0530, Amitoj Kaur Chawla wrote:
> Replace seq_printf() with seq_puts() since it is more expensive than
> seq_puts(). Problem found using checkpatch.pl
> WARNING: Prefer seq_puts to seq_printf
> 
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> ---
>  drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c b/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c
> index 6cf9b92..23f1e26 100644
> --- a/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c
> +++ b/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c
> @@ -923,7 +923,7 @@ static int ptlrpc_lprocfs_svc_req_history_show(struct seq_file *s, void *iter)
>  			   (long)(req->rq_sent - req->rq_arrival_time.tv_sec),
>  			   (long)(req->rq_sent - req->rq_deadline));
>  		if (svc->srv_ops.so_req_printer == NULL)
> -			seq_printf(s, "\n");
> +			seq_puts(s, "\n");

Shouldn't this really be seq_putc() instead?

thanks,

greg k-h


  reply	other threads:[~2015-10-25  8:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-18 15:54 [PATCH 0/3] staging: Fix multiple issues Amitoj Kaur Chawla
2015-10-18 15:57 ` [PATCH 1/3] staging: sm750fb: Replace uint32_t with u32 Amitoj Kaur Chawla
2015-10-18 16:00 ` [PATCH 2/3] staging: sm750fb: Remove volatile modifier Amitoj Kaur Chawla
2015-10-25  2:02   ` [Outreachy kernel] " Greg KH
2015-10-18 16:03 ` [PATCH 3/3] staging: lustre: ptlrpc: Replace seq_printf() with seq_puts() Amitoj Kaur Chawla
2015-10-25  1:38   ` Greg KH [this message]
2015-10-25 14:30     ` [Outreachy kernel] " Amitoj Kaur Chawla
2015-10-25 14:31       ` Julia Lawall
2015-10-26 16:40         ` Amitoj Kaur Chawla
2015-10-26 16:47           ` Julia Lawall

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=20151025013856.GA8425@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=amitoj1606@gmail.com \
    --cc=outreachy-kernel@googlegroups.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 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.