Commit 653996ca authored by Markus Elfring's avatar Markus Elfring Committed by David Teigland

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 8e174374
...@@ -68,7 +68,7 @@ static void print_format1_lock(struct seq_file *s, struct dlm_lkb *lkb, ...@@ -68,7 +68,7 @@ static void print_format1_lock(struct seq_file *s, struct dlm_lkb *lkb,
if (lkb->lkb_wait_type) if (lkb->lkb_wait_type)
seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); seq_printf(s, " wait_type: %d", lkb->lkb_wait_type);
seq_puts(s, "\n"); seq_putc(s, '\n');
} }
static void print_format1(struct dlm_rsb *res, struct seq_file *s) 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,7 +111,7 @@ static void print_format1(struct dlm_rsb *res, struct seq_file *s)
} }
if (rsb_flag(res, RSB_VALNOTVALID)) if (rsb_flag(res, RSB_VALNOTVALID))
seq_puts(s, " (INVALID)"); seq_puts(s, " (INVALID)");
seq_puts(s, "\n"); seq_putc(s, '\n');
if (seq_has_overflowed(s)) if (seq_has_overflowed(s))
goto out; goto out;
} }
...@@ -156,7 +156,7 @@ static void print_format1(struct dlm_rsb *res, struct seq_file *s) ...@@ -156,7 +156,7 @@ static void print_format1(struct dlm_rsb *res, struct seq_file *s)
lkb->lkb_id, print_lockmode(lkb->lkb_rqmode)); lkb->lkb_id, print_lockmode(lkb->lkb_rqmode));
if (lkb->lkb_wait_type) if (lkb->lkb_wait_type)
seq_printf(s, " wait_type: %d", lkb->lkb_wait_type); seq_printf(s, " wait_type: %d", lkb->lkb_wait_type);
seq_puts(s, "\n"); seq_putc(s, '\n');
if (seq_has_overflowed(s)) if (seq_has_overflowed(s))
goto out; goto out;
} }
...@@ -287,7 +287,7 @@ static void print_format3(struct dlm_rsb *r, struct seq_file *s) ...@@ -287,7 +287,7 @@ static void print_format3(struct dlm_rsb *r, struct seq_file *s)
else else
seq_printf(s, " %02x", (unsigned char)r->res_name[i]); seq_printf(s, " %02x", (unsigned char)r->res_name[i]);
} }
seq_puts(s, "\n"); seq_putc(s, '\n');
if (seq_has_overflowed(s)) if (seq_has_overflowed(s))
goto out; goto out;
...@@ -298,7 +298,7 @@ static void print_format3(struct dlm_rsb *r, struct seq_file *s) ...@@ -298,7 +298,7 @@ static void print_format3(struct dlm_rsb *r, struct seq_file *s)
for (i = 0; i < lvblen; i++) for (i = 0; i < lvblen; i++)
seq_printf(s, " %02x", (unsigned char)r->res_lvbptr[i]); seq_printf(s, " %02x", (unsigned char)r->res_lvbptr[i]);
seq_puts(s, "\n"); seq_putc(s, '\n');
if (seq_has_overflowed(s)) if (seq_has_overflowed(s))
goto out; goto out;
...@@ -361,8 +361,7 @@ static void print_format4(struct dlm_rsb *r, struct seq_file *s) ...@@ -361,8 +361,7 @@ static void print_format4(struct dlm_rsb *r, struct seq_file *s)
else else
seq_printf(s, " %02x", (unsigned char)r->res_name[i]); seq_printf(s, " %02x", (unsigned char)r->res_name[i]);
} }
seq_puts(s, "\n"); seq_putc(s, '\n');
unlock_rsb(r); unlock_rsb(r);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment