Staging: lustre: Fix prefer seq_puts to seq_printf
authorSumit Pundir <pundirsumit11@gmail.com>
Fri, 5 Jan 2018 16:13:56 +0000 (21:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:45 +0000 (16:03 +0100)
Use seq_puts() for strings without format specifiers instead of
seq_printf(). Issue reported by checkpatch.pl

Signed-off-by: Sumit Pundir <pundirsumit11@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/cl_object.c

index fdd27ce46fdae63f957350b67aab5542531e551c..b90074790a2af102999f2ec9e675438010f4fd14 100644 (file)
@@ -510,13 +510,13 @@ locks: ...... ...... ...... ...... ...... [...... ...... ...... ...... ......]
  */
        lu_site_stats_print(&site->cs_lu, m);
        cache_stats_print(&site->cs_pages, m, 1);
-       seq_printf(m, " [");
+       seq_puts(m, " [");
        for (i = 0; i < ARRAY_SIZE(site->cs_pages_state); ++i)
                seq_printf(m, "%s: %u ", pstate[i],
                           atomic_read(&site->cs_pages_state[i]));
-       seq_printf(m, "]\n");
+       seq_puts(m, "]\n");
        cache_stats_print(&cl_env_stats, m, 0);
-       seq_printf(m, "\n");
+       seq_puts(m, "\n");
        return 0;
 }
 EXPORT_SYMBOL(cl_site_stats_print);