[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c88fdadd-bdef-7e7f-7704-487587693838@users.sourceforge.net>
Date: Sun, 1 Jan 2017 17:37:04 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: devel@...verdev.osuosl.org, lustre-devel@...ts.lustre.org,
Andreas Dilger <andreas.dilger@...el.com>,
Ben Evans <bevans@...y.com>, Bobi Jam <bobijam.xu@...el.com>,
Emoly Liu <emoly.liu@...el.com>, Fan Yong <fan.yong@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Gregoire Pichon <gregoire.pichon@...l.net>,
Henri Doreau <henri.doreau@....fr>,
James Simmons <jsimmons@...radead.org>,
Jinshan Xiong <jinshan.xiong@...el.com>,
"John L. Hammond" <john.hammond@...el.com>,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
Lai Siyao <lai.siyao@...el.com>,
Oleg Drokin <oleg.drokin@...el.com>,
Sebastien Buisson <sbuisson@....com>,
Stephen Champion <schamp@....com>, wang di <di.wang@...el.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 3/5] staging/lustre/obdclass: Use seq_putc() in four functions
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sun, 1 Jan 2017 16:12:23 +0100
A few single characters (line breaks) 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@...rs.sourceforge.net>
---
drivers/staging/lustre/lustre/obdclass/cl_object.c | 4 ++--
drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/lustre/lustre/obdclass/cl_object.c b/drivers/staging/lustre/lustre/obdclass/cl_object.c
index f5d4e23c64b7..277908d66a89 100644
--- a/drivers/staging/lustre/lustre/obdclass/cl_object.c
+++ b/drivers/staging/lustre/lustre/obdclass/cl_object.c
@@ -441,7 +441,7 @@ static int cache_stats_print(const struct cache_stats *cs,
seq_printf(m, "%6s", " ");
for (i = 0; i < CS_NR; i++)
seq_printf(m, "%8s", names[i]);
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
}
seq_printf(m, "%5.5s:", cs->cs_name);
@@ -516,7 +516,7 @@ locks: ...... ...... ...... ...... ...... [...... ...... ...... ...... ......]
atomic_read(&site->cs_pages_state[i]));
seq_printf(m, "]\n");
cache_stats_print(&cl_env_stats, m, 0);
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
return 0;
}
EXPORT_SYMBOL(cl_site_stats_print);
diff --git a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
index 2c99717b0aba..3f6fcab5a1fc 100644
--- a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
+++ b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
@@ -878,7 +878,7 @@ int lprocfs_at_hist_helper(struct seq_file *m, struct adaptive_timeout *at)
for (i = 0; i < AT_BINS; i++)
seq_printf(m, "%3u ", at->at_hist[i]);
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
return 0;
}
EXPORT_SYMBOL(lprocfs_at_hist_helper);
@@ -946,7 +946,7 @@ int lprocfs_rd_connect_flags(struct seq_file *m, void *data)
flags = obd->u.cli.cl_import->imp_connect_data.ocd_connect_flags;
seq_printf(m, "flags=%#llx\n", flags);
obd_connect_seq_flags2str(m, flags, "\n");
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
up_read(&obd->u.cli.cl_sem);
return 0;
}
--
2.11.0
Powered by blists - more mailing lists