diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-02-29 22:52:30 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-02-29 22:34:42 -0800 |
commit | f0b7f8ade9d2532a7d7da40eb297570d48dd2147 (patch) | |
tree | d0492622843644492a64744db50a1ac2e58e83f1 /include/linux/overflow.h | |
parent | aaa8736370db1a78f0e8434344a484f9fd20be3b (diff) |
lib/string_helpers: Add flags param to string_get_size()
The new flags parameter allows controlling
- Whether or not the units suffix is separated by a space, for
compatibility with sort -h
- Whether or not to append a B suffix - we're not always printing
bytes.
Co-developed-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
Link: https://lore.kernel.org/r/20240229205345.93902-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions