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

From: Matthew Wilcox
Date: Tue Apr 19 2022 - 17:12:02 EST


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 ;-)