lkml.org 
[lkml]   [2016]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 8/13] md/multipath: Replace a seq_printf() call by seq_puts() in multipath_status()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Sun, 2 Oct 2016 10:00:15 +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/multipath.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/md/multipath.c b/drivers/md/multipath.c
    index cb5141f..0e8939f 100644
    --- a/drivers/md/multipath.c
    +++ b/drivers/md/multipath.c
    @@ -157,7 +157,7 @@ static void multipath_status(struct seq_file *seq, struct mddev *mddev)
    rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
    }
    rcu_read_unlock();
    - seq_printf (seq, "]");
    + seq_puts(seq, "]");
    }

    static int multipath_congested(struct mddev *mddev, int bits)
    --
    2.10.0
    \
     
     \ /
      Last update: 2016-10-02 14:05    [W:5.028 / U:0.416 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site