Skip to content

Commit

Permalink
coff: Remove debug prints.
Browse files Browse the repository at this point in the history
  • Loading branch information
montekki committed Feb 20, 2014
1 parent d31c362 commit dff9e0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions libr/bin/format/coff/coff.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ static int r_bin_coff_init_hdr(struct r_bin_coff_obj *obj)
r_mem_copyendian((ut8*)&(obj->hdr.flags), obj->b->buf + offset,
sizeof(ut16), obj->endian);

if (obj->hdr.flags & IMAGE_FLAGS_TI_F_LITTLE) {
obj->endian = LIL_ENDIAN;
}
offset += sizeof(ut16);

if (obj->hdr.machine == IMAGE_FILE_TI_COFF) {
r_mem_copyendian((ut8*)&(obj->hdr.target_id), obj->b->buf + offset,
sizeof(ut16), obj->endian);

printf("%x\n", obj->hdr.target_id);
}

return R_TRUE;
Expand Down Expand Up @@ -181,6 +182,7 @@ static int r_bin_coff_init_scn_hdr(struct r_bin_coff_obj *obj)
r_mem_copyendian((ut8*)&(obj->scn_hdrs[i].flags),
obj->b->buf + offset, sizeof(ut32), obj->endian);


offset += sizeof(ut32);
}

Expand Down
2 changes: 0 additions & 2 deletions libr/bin/p/bin_coff.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ static RList *entries(RBinFile *arch)
}
}

printf("offset %x rva %x\n", ptr->offset, ptr->rva);

r_list_append(ret, ptr);

return ret;
Expand Down

0 comments on commit dff9e0d

Please sign in to comment.