Use 0x%x instead of 0x%d in ic subcommands 🤦
This commit is contained in:
parent
b63c759eb6
commit
9ddbf1b3e3
|
@ -1472,7 +1472,7 @@ static int cmd_info(void *data, const char *input) {
|
|||
case 'l':
|
||||
r_list_foreach (cls->methods, iter2, sym) {
|
||||
const char *comma = iter2->p? " ": "";
|
||||
r_cons_printf ("%s0x%"PFMT64d, comma,
|
||||
r_cons_printf ("%s0x%"PFMT64x, comma,
|
||||
iova? sym->vaddr: sym->paddr);
|
||||
}
|
||||
r_cons_newline ();
|
||||
|
@ -1527,7 +1527,7 @@ static int cmd_info(void *data, const char *input) {
|
|||
if (addr == 0 || addr == UT64_MAX) {
|
||||
continue;
|
||||
}
|
||||
r_cons_printf ("0x%"PFMT64d" [%s] %s\n",
|
||||
r_cons_printf ("0x%"PFMT64x" [%s] %s\n",
|
||||
addr, cls->name, sym->name);
|
||||
}
|
||||
}
|
||||
|
@ -1538,7 +1538,7 @@ static int cmd_info(void *data, const char *input) {
|
|||
r_list_foreach (obj->classes, iter, cls) {
|
||||
r_list_foreach (cls->methods, iter2, sym) {
|
||||
const char *comma = iter2->p? " ": "";
|
||||
r_cons_printf ("%s0x%"PFMT64d, comma,
|
||||
r_cons_printf ("%s0x%"PFMT64x, comma,
|
||||
iova? sym->vaddr: sym->paddr);
|
||||
}
|
||||
if (!r_list_empty (cls->methods)) {
|
||||
|
|
|
@ -521,26 +521,26 @@ NAME=icl
|
|||
FILE=bins/elf/libmagic.so
|
||||
CMDS=icl
|
||||
EXPECT=<<EOF
|
||||
0x24672 0x24682 0x24692 0x24718 0x24728 0x24740 0x24768 0x24796 0x24810 0x26974 0x27004
|
||||
0x29944 0x27036 0x27180 0x27324 0x27380 0x27420 0x27568 0x27904 0x28252 0x28520 0x29196
|
||||
0x38000 0x34924 0x38036 0x38060 0x38088
|
||||
0x34948 0x35060
|
||||
0x34972 0x35076
|
||||
0x35012
|
||||
0x35036
|
||||
0x35204
|
||||
0x37948 0x38024
|
||||
0x38116
|
||||
0x38844 0x38868 0x38876 0x38996 0x38884 0x38920
|
||||
0x38184 0x38192 0x38260
|
||||
0x40432 0x40500 0x40400
|
||||
0x38388 0x38456 0x38556 0x38780
|
||||
0x39128 0x39196 0x39240 0x39016 0x39108 0x39308
|
||||
0x40644 0x75648 0x75720
|
||||
0x75440 0x75512
|
||||
0x75456 0x75472
|
||||
0x76760 0x76744
|
||||
0x76844 0x76828
|
||||
0x6060 0x606a 0x6074 0x608e 0x6098 0x60a4 0x60c0 0x60dc 0x60ea 0x695e 0x697c
|
||||
0x74f8 0x699c 0x6a2c 0x6abc 0x6af4 0x6b1c 0x6bb0 0x6d00 0x6e5c 0x6f68 0x720c
|
||||
0x9470 0x886c 0x9494 0x94ac 0x94c8
|
||||
0x8884 0x88f4
|
||||
0x889c 0x8904
|
||||
0x88c4
|
||||
0x88dc
|
||||
0x8984
|
||||
0x943c 0x9488
|
||||
0x94e4
|
||||
0x97bc 0x97d4 0x97dc 0x9854 0x97e4 0x9808
|
||||
0x9528 0x9530 0x9574
|
||||
0x9df0 0x9e34 0x9dd0
|
||||
0x95f4 0x9638 0x969c 0x977c
|
||||
0x98d8 0x991c 0x9948 0x9868 0x98c4 0x998c
|
||||
0x9ec4 0x12780 0x127c8
|
||||
0x126b0 0x126f8
|
||||
0x126c0 0x126d0
|
||||
0x12bd8 0x12bc8
|
||||
0x12c2c 0x12c1c
|
||||
EOF
|
||||
RUN
|
||||
|
||||
|
|
Loading…
Reference in New Issue