Re: [PATCH 1/4] lib/printbuf: New data structure for heap-allocated strings

Matthew Wilcox
2022-04-19T21:11:57Z

On Tue, Apr 19, 2022 at 04:31:59PM -0400, Kent Overstreet wrote:
> +static const char si_units[] = "?kMGTPEZY";
> +
> +void pr_human_readable_u64(struct printbuf *buf, u64 v)

The person who wrote string_get_size() spent a lot more time thinking
about corner-cases than you did ;-)