commit | f2616c772c768485de18e7fcb2816bcdcd098339 | [log] [tgz] |
---|---|---|
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | Wed Mar 17 13:34:35 2021 -0400 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Thu Mar 18 12:58:27 2021 -0400 |
tree | fc2134522f8dad91f3f04851695c603fc0e61a4d | |
parent | 5013f454a352cce8e62162976026a9c472595e42 [diff] |
seq_buf: Add seq_buf_terminate() API In the case that the seq_buf buffer needs to be printed directly, add a way to make sure that the buffer is safe to read by forcing a nul terminating character at the end of the string, or the last byte of the buffer if the string has overflowed. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>