diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-05-06 02:12:31 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-08-07 12:23:09 -0400 |
commit | 653996ca8d6f81be1b29f2a1cb622ff4afc0be04 (patch) | |
tree | 99216bbd863a1fe57b837df526afbf89c94a5486 /fs/dlm | |
parent | 8e1743748b7e967f4dc532e3969963e5175e6f30 (diff) |
dlm: Replace six seq_puts() calls by seq_putc()
Six 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@users.sourceforge.net>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/debug_fs.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index ca7089aeadab..464218c6b502 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c | |||
@@ -68,7 +68,7 @@ static void print_format1_lock(struct seq_file *s, struct dlm_lkb *lkb, | |||
68 | if (lkb->lkb_wait_type) | 68 | if (lkb->lkb_wait_type) |
69 | seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); | 69 | seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); |
70 | 70 | ||
71 | seq_puts(s, "\n"); | 71 | seq_putc(s, '\n'); |
72 | } | 72 | } |
73 | 73 | ||
74 | static void print_format1(struct dlm_rsb *res, struct seq_file *s) | 74 | static void print_format1(struct dlm_rsb *res, struct seq_file *s) |
@@ -111,7 +111,7 @@ static void print_format1(struct dlm_rsb *res, struct seq_file *s) | |||
111 | } | 111 | } |
112 | if (rsb_flag(res, RSB_VALNOTVALID)) | 112 | if (rsb_flag(res, RSB_VALNOTVALID)) |
113 | seq_puts(s, " (INVALID)"); | 113 | seq_puts(s, " (INVALID)"); |
114 | seq_puts(s, "\n"); | 114 | seq_putc(s, '\n'); |
115 | if (seq_has_overflowed(s)) | 115 | if (seq_has_overflowed(s)) |
116 | goto out; | 116 | goto out; |
117 | } | 117 | } |
@@ -156,7 +156,7 @@ static void print_format1(struct dlm_rsb *res, struct seq_file *s) | |||
156 | lkb->lkb_id, print_lockmode(lkb->lkb_rqmode)); | 156 | lkb->lkb_id, print_lockmode(lkb->lkb_rqmode)); |
157 | if (lkb->lkb_wait_type) | 157 | if (lkb->lkb_wait_type) |
158 | seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); | 158 | seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); |
159 | seq_puts(s, "\n"); | 159 | seq_putc(s, '\n'); |
160 | if (seq_has_overflowed(s)) | 160 | if (seq_has_overflowed(s)) |
161 | goto out; | 161 | goto out; |
162 | } | 162 | } |
@@ -287,7 +287,7 @@ static void print_format3(struct dlm_rsb *r, struct seq_file *s) | |||
287 | else | 287 | else |
288 | seq_printf(s, " %02x", (unsigned char)r->res_name[i]); | 288 | seq_printf(s, " %02x", (unsigned char)r->res_name[i]); |
289 | } | 289 | } |
290 | seq_puts(s, "\n"); | 290 | seq_putc(s, '\n'); |
291 | if (seq_has_overflowed(s)) | 291 | if (seq_has_overflowed(s)) |
292 | goto out; | 292 | goto out; |
293 | 293 | ||
@@ -298,7 +298,7 @@ static void print_format3(struct dlm_rsb *r, struct seq_file *s) | |||
298 | 298 | ||
299 | for (i = 0; i < lvblen; i++) | 299 | for (i = 0; i < lvblen; i++) |
300 | seq_printf(s, " %02x", (unsigned char)r->res_lvbptr[i]); | 300 | seq_printf(s, " %02x", (unsigned char)r->res_lvbptr[i]); |
301 | seq_puts(s, "\n"); | 301 | seq_putc(s, '\n'); |
302 | if (seq_has_overflowed(s)) | 302 | if (seq_has_overflowed(s)) |
303 | goto out; | 303 | goto out; |
304 | 304 | ||
@@ -361,8 +361,7 @@ static void print_format4(struct dlm_rsb *r, struct seq_file *s) | |||
361 | else | 361 | else |
362 | seq_printf(s, " %02x", (unsigned char)r->res_name[i]); | 362 | seq_printf(s, " %02x", (unsigned char)r->res_name[i]); |
363 | } | 363 | } |
364 | seq_puts(s, "\n"); | 364 | seq_putc(s, '\n'); |
365 | |||
366 | unlock_rsb(r); | 365 | unlock_rsb(r); |
367 | } | 366 | } |
368 | 367 | ||