diff options
| author | Richard Fitzgerald <[email protected]> | 2023-08-28 10:41:04 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2023-09-18 16:45:16 +0000 |
| commit | a5abe7b201779b0000f1e8ab522e5c6fc0c413bf (patch) | |
| tree | 4d116c7fac6208c19800510bd83f7a3ec64d8389 /lib/kunit/string-stream-test.c | |
| parent | kunit: string-stream: Improve testing of string_stream (diff) | |
| download | kernel-a5abe7b201779b0000f1e8ab522e5c6fc0c413bf.tar.gz kernel-a5abe7b201779b0000f1e8ab522e5c6fc0c413bf.zip | |
kunit: string-stream: Add option to make all lines end with newline
Add an optional feature to string_stream that will append a newline to
any added string that does not already end with a newline. The purpose
of this is so that string_stream can be used to collect log lines.
This is enabled/disabled by calling string_stream_set_append_newlines().
Signed-off-by: Richard Fitzgerald <[email protected]>
Reviewed-by: Rae Moar <[email protected]>
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/kunit/string-stream-test.c')
0 files changed, 0 insertions, 0 deletions
