diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 14:53:18 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 14:53:18 +0000 |
commit | cf30cc82a343802b601f01ae153916887f11eb7b (patch) | |
tree | dd5af380364efe67c7bd302d6c1c6d70f303f959 /include | |
parent | 376ce1e775a97a01f1c454497fbe34d326043328 (diff) | |
download | busybox-cf30cc82a343802b601f01ae153916887f11eb7b.tar.gz |
header_verbose_list: stop truncating file size in listing
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h index 2ccb6e7bb..ad64bad84 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -88,13 +88,14 @@ # define STRTOOFF strtol # define SAFE_STRTOOFF safe_strtol # define XSTRTOUOFF xstrtoul -# define OFF_FMT "ld" +/* usage: printf("size: %"OFF_FMT"d (%"OFF_FMT"x)\n", sz, sz); */ +# define OFF_FMT "l" # else /* "long" is too short, need "long long" */ # define STRTOOFF strtoll # define SAFE_STRTOOFF safe_strtoll # define XSTRTOUOFF xstrtoull -# define OFF_FMT "lld" +# define OFF_FMT "ll" # endif #else # if 0 /* #if UINT_MAX == 0xffffffff */ @@ -103,12 +104,12 @@ # define STRTOOFF strtol # define SAFE_STRTOOFF safe_strtoi # define XSTRTOUOFF xstrtou -# define OFF_FMT "d" +# define OFF_FMT "" # else # define STRTOOFF strtol # define SAFE_STRTOOFF safe_strtol # define XSTRTOUOFF xstrtoul -# define OFF_FMT "ld" +# define OFF_FMT "l" # endif #endif /* scary. better ideas? (but do *test* them first!) */ @@ -703,7 +704,7 @@ extern const char bb_default_login_shell[]; #define RB_POWER_OFF 0x4321fedc #endif -// Make sure we call functions instead of macros. +/* Make sure we call functions instead of macros. */ #undef isalnum #undef isalpha #undef isascii |