Use unsigned format in xref addresses

This commit is contained in:
pancake 2019-02-03 17:14:36 +01:00
parent e5b4d9294c
commit 0d089f7f4b
2 changed files with 2 additions and 3 deletions

View File

@ -246,7 +246,7 @@ R_API void r_anal_xrefs_list(RAnal *anal, int rad) {
anal->cb_printf ("\"name\":\"%s\",", name);
free (name);
}
anal->cb_printf ("\"from\":%"PFMT64d",\"type\":\"%s\",\"addr\":%"PFMT64d,
anal->cb_printf ("\"from\":%"PFMT64u",\"type\":\"%s\",\"addr\":%"PFMT64u,
ref->at, r_anal_xrefs_type_tostring (t), ref->addr);
name = anal->coreb.getNameDelta (anal->coreb.core, ref->addr);
if (name) {

View File

@ -4250,9 +4250,8 @@ static void showmem_json (RList *list, PJ *pj) {
if (!r_list_empty (list)) {
RListIter *iter;
AeaMemItem *item;
r_list_foreach (list, iter, item) {
pj_n (pj, item->addr);
pj_n (pj, item->addr);
}
}