diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-18 12:08:02 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-18 12:08:02 +0200 |
commit | dc30f3dce27bdcccb8450a2418061b4bcdc0ea14 (patch) | |
tree | 31840c006d598c7fee08796f2ba19c09d85df083 /include | |
parent | 2c436679fbb5fa38b0e7a505022a2075fab87d84 (diff) | |
download | busybox-w32-dc30f3dce27bdcccb8450a2418061b4bcdc0ea14.tar.gz busybox-w32-dc30f3dce27bdcccb8450a2418061b4bcdc0ea14.tar.bz2 busybox-w32-dc30f3dce27bdcccb8450a2418061b4bcdc0ea14.zip |
free: implement -h
function old new delta
.rodata 103331 103363 +32
packed_usage 33652 33654 +2
free_main 657 588 -69
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 34/-69) Total: -35 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index a3f76a206..9a95a176d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1065,10 +1065,10 @@ char *smart_ulltoa5(unsigned long long ul, char buf[5], const char *scale) FAST_ | |||
1065 | /* If block_size == 0, display size without fractional part, | 1065 | /* If block_size == 0, display size without fractional part, |
1066 | * else display (size * block_size) with one decimal digit. | 1066 | * else display (size * block_size) with one decimal digit. |
1067 | * If display_unit == 0, show value no bigger than 1024 with suffix (K,M,G...), | 1067 | * If display_unit == 0, show value no bigger than 1024 with suffix (K,M,G...), |
1068 | * else divide by display_unit and do not use suffix. */ | 1068 | * else divide by display_unit and do not use suffix. |
1069 | * Returns "auto pointer" */ | ||
1069 | #define HUMAN_READABLE_MAX_WIDTH 7 /* "1024.0G" */ | 1070 | #define HUMAN_READABLE_MAX_WIDTH 7 /* "1024.0G" */ |
1070 | #define HUMAN_READABLE_MAX_WIDTH_STR "7" | 1071 | #define HUMAN_READABLE_MAX_WIDTH_STR "7" |
1071 | //TODO: provide pointer to buf (avoid statics)? | ||
1072 | const char *make_human_readable_str(unsigned long long size, | 1072 | const char *make_human_readable_str(unsigned long long size, |
1073 | unsigned long block_size, unsigned long display_unit) FAST_FUNC; | 1073 | unsigned long block_size, unsigned long display_unit) FAST_FUNC; |
1074 | /* Put a string of hex bytes ("1b2e66fe"...), return advanced pointer */ | 1074 | /* Put a string of hex bytes ("1b2e66fe"...), return advanced pointer */ |