Re: [PATCH v3 3/5] telemetry: split out body of json string format fn

2023-04-07 Thread Tyler Retzlaff
On Wed, Apr 05, 2023 at 05:03:24PM +0100, Bruce Richardson wrote: > To enable further rework to (efficiently) avoid using variable-length > arrays, we first separate out the body of the __json_format_str > function. This means that the actual VLA buffer is in the wrapper > function, and means we ca

[PATCH v3 3/5] telemetry: split out body of json string format fn

2023-04-05 Thread Bruce Richardson
To enable further rework to (efficiently) avoid using variable-length arrays, we first separate out the body of the __json_format_str function. This means that the actual VLA buffer is in the wrapper function, and means we can reuse the actual writing code in multiple code paths without duplication