Commit 626caae9 authored by Markus Elfring's avatar Markus Elfring Committed by Simon Wunderlich

batman-adv: Replace a seq_puts() call by seq_putc() in two functions

Two 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 avatarSven Eckelmann <sven@narfation.org>
Signed-off-by: default avatarSimon Wunderlich <sw@simonwunderlich.de>
parent 8ea026b1
...@@ -1944,7 +1944,7 @@ static void batadv_iv_ogm_orig_print(struct batadv_priv *bat_priv, ...@@ -1944,7 +1944,7 @@ static void batadv_iv_ogm_orig_print(struct batadv_priv *bat_priv,
batadv_iv_ogm_orig_print_neigh(orig_node, if_outgoing, batadv_iv_ogm_orig_print_neigh(orig_node, if_outgoing,
seq); seq);
seq_puts(seq, "\n"); seq_putc(seq, '\n');
batman_count++; batman_count++;
next: next:
......
...@@ -400,7 +400,7 @@ static void batadv_v_orig_print(struct batadv_priv *bat_priv, ...@@ -400,7 +400,7 @@ static void batadv_v_orig_print(struct batadv_priv *bat_priv,
neigh_node->if_incoming->net_dev->name); neigh_node->if_incoming->net_dev->name);
batadv_v_orig_print_neigh(orig_node, if_outgoing, seq); batadv_v_orig_print_neigh(orig_node, if_outgoing, seq);
seq_puts(seq, "\n"); seq_putc(seq, '\n');
batman_count++; batman_count++;
next: next:
......
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