On Sat, Jul 12, 2025 at 9:58 PM Christopher Bazley <chris.bazley.w...@gmail.com> wrote: > > Hi Linus, > > On Mon, Jul 7, 2025 at 8:17 PM Linus Torvalds > <torva...@linux-foundation.org> wrote: > > > > On Sun, 6 Jul 2025 at 22:06, Alejandro Colomar <a...@kernel.org> wrote: > > > > > > - p += snprintf(p, ID_STR_LENGTH - (p - name), "%07u", s->size); > > > + p = seprintf(p, e, "%07u", s->size); > > > > I am *really* not a fan of introducing yet another random non-standard > > string function. > > > > This 'seprintf' thing really seems to be a completely made-up thing. > > Let's not go there. It just adds more confusion - it may be a simpler > > interface, but it's another cogniitive load thing, and honestly, that > > "beginning and end" interface is not great. > > > > I think we'd be better off with real "character buffer" interfaces, > > and they should be *named* that way, not be yet another "random > > character added to the printf family". > > I was really interested to see this comment because I presented a > design for a standard character buffer interface, "strb_t", to WG14 in > summer of 2014.
Ugh, that should have been 2024. I'm getting old! Chris