diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2023-05-25 19:51:37 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2023-05-25 19:51:37 +0200 |
commit | ce4cfc33cade63513963f9d5e701f305cbdfe693 (patch) | |
tree | a0ab6bee9f3fb99c1c30e632fe25cb75fd359683 /coreutils | |
parent | e2287f99fe6f21fd6435ad04340170ad4ba5f6b3 (diff) | |
download | busybox-w32-ce4cfc33cade63513963f9d5e701f305cbdfe693.tar.gz busybox-w32-ce4cfc33cade63513963f9d5e701f305cbdfe693.tar.bz2 busybox-w32-ce4cfc33cade63513963f9d5e701f305cbdfe693.zip |
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')
-rw-r--r-- | coreutils/od.c | 2 | ||||
-rw-r--r-- | coreutils/od_bloaty.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/coreutils/od.c b/coreutils/od.c index 6d562ea91..bd82487e5 100644 --- a/coreutils/od.c +++ b/coreutils/od.c | |||
@@ -167,6 +167,8 @@ static const char *const add_strings[] ALIGN_PTR = { | |||
167 | "4/4 \"%15.7e \" \"\\n\"", /* 7: f */ | 167 | "4/4 \"%15.7e \" \"\\n\"", /* 7: f */ |
168 | "4/4 \"%08x \" \"\\n\"", /* 8: H, X */ | 168 | "4/4 \"%08x \" \"\\n\"", /* 8: H, X */ |
169 | "8/2 \"%04x \" \"\\n\"", /* 9: h, x */ | 169 | "8/2 \"%04x \" \"\\n\"", /* 9: h, x */ |
170 | /* This probably also depends on word width of the arch (what is "long"?) */ | ||
171 | /* should be "2/8" or "4/4" depending on sizeof(long)? */ | ||
170 | "2/8 \"%20lld \" \"\\n\"", /* 10: I, L, l */ | 172 | "2/8 \"%20lld \" \"\\n\"", /* 10: I, L, l */ |
171 | "4/4 \"%11d \" \"\\n\"", /* 11: i */ | 173 | "4/4 \"%11d \" \"\\n\"", /* 11: i */ |
172 | "4/4 \"%011o \" \"\\n\"", /* 12: O */ | 174 | "4/4 \"%011o \" \"\\n\"", /* 12: O */ |
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 5b5e56a21..51fff436b 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -1245,9 +1245,11 @@ int od_main(int argc UNUSED_PARAM, char **argv) | |||
1245 | if (opt & OPT_d) decode_format_string("u2"); | 1245 | if (opt & OPT_d) decode_format_string("u2"); |
1246 | if (opt & OPT_f) decode_format_string("fF"); | 1246 | if (opt & OPT_f) decode_format_string("fF"); |
1247 | if (opt & OPT_h) decode_format_string("x2"); | 1247 | if (opt & OPT_h) decode_format_string("x2"); |
1248 | if (opt & OPT_i) decode_format_string("d2"); | 1248 | if (opt & OPT_i) decode_format_string("dI"); |
1249 | if (opt & OPT_j) n_bytes_to_skip = xstrtooff_sfx(str_j, 0, bkm_suffixes); | 1249 | if (opt & OPT_j) n_bytes_to_skip = xstrtooff_sfx(str_j, 0, bkm_suffixes); |
1250 | if (opt & OPT_l) decode_format_string("d4"); | 1250 | /* This probably also depends on word width of the arch (what is "long"?) */ |
1251 | /* should be "d4" or "d8" depending on sizeof(long)? */ | ||
1252 | if (opt & OPT_l) decode_format_string("d8"); | ||
1251 | if (opt & OPT_o) decode_format_string("o2"); | 1253 | if (opt & OPT_o) decode_format_string("o2"); |
1252 | while (lst_t) { | 1254 | while (lst_t) { |
1253 | decode_format_string(llist_pop(&lst_t)); | 1255 | decode_format_string(llist_pop(&lst_t)); |