diff options
author | Jonathan Corbet <corbet@lwn.net> | 2023-10-20 23:38:49 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-10-20 23:51:06 +0300 |
commit | 845e31e1101fc8533be52aff42d8f1ff48636024 (patch) | |
tree | 64d668e15120bb15e9351bd88002ded252220870 /include/linux/seq_buf.h | |
parent | d0ed46b60396cfa7e0056f55e1ce0b43c7db57b6 (diff) | |
download | linux-845e31e1101fc8533be52aff42d8f1ff48636024.tar.xz |
seq_buf: fix a misleading comment
The comment for seq_buf_has_overflowed() says that an overflow condition is
marked by len == size, but that's not what the code is testing. Make the
comment match reality.
Link: https://lkml.kernel.org/r/87pm19kp0m.fsf@meer.lwn.net
Fixes: 8cd709ae7658a ("tracing: Have seq_buf use full buffer")
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/seq_buf.h')
-rw-r--r-- | include/linux/seq_buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h index a0fb013cebdf..8483e4b2d0d2 100644 --- a/include/linux/seq_buf.h +++ b/include/linux/seq_buf.h @@ -36,7 +36,7 @@ seq_buf_init(struct seq_buf *s, char *buf, unsigned int size) /* * seq_buf have a buffer that might overflow. When this happens - * the len and size are set to be equal. + * len is set to be greater than size. */ static inline bool seq_buf_has_overflowed(struct seq_buf *s) |