Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: Roland Kammerer <roland.kammerer@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [PATCH] drbd: Use seq_putc() once more in drbd_syncer_progress()
Date: Tue, 2 May 2017 10:44:16 +0200	[thread overview]
Message-ID: <20170502084415.GA19200@rck.sh> (raw)
In-Reply-To: <mailman.1499.1493662700.15553.drbd-dev@lists.linbit.com>

On Mon, May 01, 2017 at 08:18:20PM +0200, elfring@users.sourceforge.net wrote:
> From: SF Markus Elfring <elfring@users.sourceforge.net>
> Subject: [PATCH] drbd: Use seq_putc() once more in drbd_syncer_progress()
> Date: Mon, 1 May 2017 20:12:58 +0200
> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
>  Thunderbird/52.0.1
> 
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Mon, 1 May 2017 20:05:08 +0200
> 
> A single dot should be put into a sequence.
> Thus use the corresponding function "seq_putc".
> 
> This issue was detected by using the Coccinelle software.
> 
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
> ---
>  drivers/block/drbd/drbd_proc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/block/drbd/drbd_proc.c b/drivers/block/drbd/drbd_proc.c
> index 8378142f7a55..fc0f627567fd 100644
> --- a/drivers/block/drbd/drbd_proc.c
> +++ b/drivers/block/drbd/drbd_proc.c
> @@ -127,7 +127,7 @@ static void drbd_syncer_progress(struct drbd_device *device, struct seq_file *se
>  		seq_putc(seq, '=');
>  	seq_putc(seq, '>');
>  	for (i = 0; i < y; i++)
> -		seq_printf(seq, ".");
> +		seq_putc(seq, '.');
>  	seq_puts(seq, "] ");
>  
>  	if (state.conn == C_VERIFY_S || state.conn == C_VERIFY_T)

Thanks, applied internally, will be upstream eventually.

Regards, rck

           reply	other threads:[~2017-05-02  8:52 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <mailman.1499.1493662700.15553.drbd-dev@lists.linbit.com>]

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=20170502084415.GA19200@rck.sh \
    --to=roland.kammerer@linbit.com \
    --cc=drbd-dev@lists.linbit.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