summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-02-29 23:52:30 +0300
committerKees Cook <keescook@chromium.org>2024-03-01 09:34:42 +0300
commitf0b7f8ade9d2532a7d7da40eb297570d48dd2147 (patch)
treed0492622843644492a64744db50a1ac2e58e83f1 /drivers/misc
parentaaa8736370db1a78f0e8434344a484f9fd20be3b (diff)
downloadlinux-f0b7f8ade9d2532a7d7da40eb297570d48dd2147.tar.xz
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 'drivers/misc')
0 files changed, 0 insertions, 0 deletions