util: introduce format_bytes_full()

And move it into format-util.c.
This commit is contained in:
Yu Watanabe
2019-06-19 23:15:19 +09:00
parent 33a8695fdc
commit aa89266900
11 changed files with 77 additions and 49 deletions
-3
View File
@@ -22,9 +22,6 @@ int parse_range(const char *t, unsigned *lower, unsigned *upper);
int parse_errno(const char *t);
int parse_syscall_and_errno(const char *in, char **name, int *error);
#define FORMAT_BYTES_MAX 8
char *format_bytes(char *buf, size_t l, uint64_t t);
int safe_atou_full(const char *s, unsigned base, unsigned *ret_u);
static inline int safe_atou(const char *s, unsigned *ret_u) {