Fix another 0x%d and lint it
This commit is contained in:
parent
9ddbf1b3e3
commit
5ba64265fb
|
@ -1721,7 +1721,7 @@ static void print_attr_value(const RBinDwarfAttrValue *val, PrintfCallback print
|
|||
print ("0x%"PFMT64x, val->address);
|
||||
break;
|
||||
case DW_FORM_implicit_const:
|
||||
print ("0x%"PFMT64d, val->uconstant);
|
||||
print ("0x%"PFMT64x, val->uconstant);
|
||||
break;
|
||||
default:
|
||||
print ("Unknown attr value form %"PFMT64d"\n", val->attr_form);
|
||||
|
|
|
@ -2143,7 +2143,7 @@ static int init_items(struct MACH0_(obj_t) *mo) {
|
|||
// int kind = r_read_ble16 (db + i + 4 + 2, mo->big_endian);
|
||||
int len = r_read_ble16 (db + j + 4, mo->big_endian);
|
||||
ut64 va = offset_to_vaddr(mo, dw);
|
||||
// eprintf ("# 0x%d -> 0x%x\n", dw, va);
|
||||
// eprintf ("# 0x%x -> 0x%x\n", dw, va);
|
||||
// eprintf ("0x%x kind %d len %d\n", dw, kind, len);
|
||||
eprintf ("Cd 8 %d @ 0x%"PFMT64x"\n", len / 8, va);
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@ cd "$(dirname $0)"/..
|
|||
# find calls without (
|
||||
#(git grep -n -e '[a-z](' | grep -v static | grep -v _API | grep -v shlr | grep libr/core) && exit 1
|
||||
# validated and ready to go lintings
|
||||
(git grep -e '0x%"PFMT64d' -e '0x%d' libr | grep c:) && exit 1
|
||||
(git grep -e 'R_MIN(' -e 'R_MAX(' libr | grep c:) && exit 1
|
||||
(git grep -n 'cmp(' libr | grep -v R_API | grep -v static | grep c:) && exit 1
|
||||
# (git grep -n 'len(' libr | grep -v R_API | grep -v static | grep c:) && exit 1
|
||||
|
|
Loading…
Reference in New Issue