diff options
author | Tom Parkin <tparkin@katalix.com> | 2020-07-22 18:32:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-23 03:08:39 +0200 |
commit | bdf9866e4b1be12a7af7eaf11f6dcf1b92f7073f (patch) | |
tree | b70893d7c066c0e85a9e20e743b8d02fbe89b628 /net/l2tp | |
parent | l2tp: prefer using BIT macro (diff) | |
download | linux-bdf9866e4b1be12a7af7eaf11f6dcf1b92f7073f.tar.xz linux-bdf9866e4b1be12a7af7eaf11f6dcf1b92f7073f.zip |
l2tp: prefer seq_puts for unformatted output
checkpatch warns about use of seq_printf where seq_puts would do.
Modify l2tp_debugfs accordingly.
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r-- | net/l2tp/l2tp_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/l2tp/l2tp_debugfs.c b/net/l2tp/l2tp_debugfs.c index bea89c383b7d..ebe03bbb5948 100644 --- a/net/l2tp/l2tp_debugfs.c +++ b/net/l2tp/l2tp_debugfs.c @@ -199,7 +199,7 @@ static void l2tp_dfs_seq_session_show(struct seq_file *m, void *v) seq_printf(m, "%02x%02x%02x%02x", session->cookie[4], session->cookie[5], session->cookie[6], session->cookie[7]); - seq_printf(m, "\n"); + seq_puts(m, "\n"); } if (session->peer_cookie_len) { seq_printf(m, " peer cookie %02x%02x%02x%02x", @@ -209,7 +209,7 @@ static void l2tp_dfs_seq_session_show(struct seq_file *m, void *v) seq_printf(m, "%02x%02x%02x%02x", session->peer_cookie[4], session->peer_cookie[5], session->peer_cookie[6], session->peer_cookie[7]); - seq_printf(m, "\n"); + seq_puts(m, "\n"); } seq_printf(m, " %hu/%hu tx %ld/%ld/%ld rx %ld/%ld/%ld\n", |