lkml.org 
[lkml]   [2016]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 52/54] md/raid10: Replace a seq_printf() call by seq_puts() in raid10_status()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Wed, 5 Oct 2016 21:41:09 +0200

    The script "checkpatch.pl" pointed information out like the following.

    WARNING: Prefer seq_puts to seq_printf

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/md/raid10.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
    index 82d79f5..554b6d2 100644
    --- a/drivers/md/raid10.c
    +++ b/drivers/md/raid10.c
    @@ -1502,7 +1502,7 @@ static void raid10_status(struct seq_file *seq, struct mddev *mddev)
    seq_printf(seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
    }
    rcu_read_unlock();
    - seq_printf(seq, "]");
    + seq_puts(seq, "]");
    }

    /* check if there are enough drives for
    --
    2.10.1
    \
     
     \ /
      Last update: 2016-10-06 11:53    [W:4.034 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site