[lkml]   [2019]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v4 03/18] kunit: test: add string_stream a std::stream like string builder
Quoting Brendan Higgins (2019-05-14 15:16:56)
> A number of test features need to do pretty complicated string printing
> where it may not be possible to rely on a single preallocated string
> with parameters.
> So provide a library for constructing the string as you go similar to
> C++'s std::string.
> Signed-off-by: Brendan Higgins <>
> Reviewed-by: Greg Kroah-Hartman <>
> Reviewed-by: Logan Gunthorpe <>

Is there any reason why we can't use the seqfile API for this? These
both share a similar goal, formatting strings into a buffer to be read
later. Maybe some new APIs would be needed to extract the buffer
differently, but I hope we could share the code.

If it can't be used, can you please add the reasoning to the commit text

 \ /
  Last update: 2019-05-17 19:43    [W:0.136 / U:3.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site