diff options
author | Denys Vlasenko | 2023-05-25 19:51:37 +0200 |
---|---|---|
committer | Denys Vlasenko | 2023-05-25 19:51:37 +0200 |
commit | ce4cfc33cade63513963f9d5e701f305cbdfe693 (patch) | |
tree | a0ab6bee9f3fb99c1c30e632fe25cb75fd359683 /coreutils/od_bloaty.c | |
parent | e2287f99fe6f21fd6435ad04340170ad4ba5f6b3 (diff) | |
download | busybox-ce4cfc33cade63513963f9d5e701f305cbdfe693.zip busybox-ce4cfc33cade63513963f9d5e701f305cbdfe693.tar.gz |
od: correct -i, enable tests which pass for DESKTOP too
function old new delta
.rodata 105302 105305 +3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r-- | coreutils/od_bloaty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 5b5e56a..51fff43 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c @@ -1245,9 +1245,11 @@ int od_main(int argc UNUSED_PARAM, char **argv) if (opt & OPT_d) decode_format_string("u2"); if (opt & OPT_f) decode_format_string("fF"); if (opt & OPT_h) decode_format_string("x2"); - if (opt & OPT_i) decode_format_string("d2"); + if (opt & OPT_i) decode_format_string("dI"); if (opt & OPT_j) n_bytes_to_skip = xstrtooff_sfx(str_j, 0, bkm_suffixes); - if (opt & OPT_l) decode_format_string("d4"); + /* This probably also depends on word width of the arch (what is "long"?) */ + /* should be "d4" or "d8" depending on sizeof(long)? */ + if (opt & OPT_l) decode_format_string("d8"); if (opt & OPT_o) decode_format_string("o2"); while (lst_t) { decode_format_string(llist_pop(&lst_t)); |