Skip to content

Commit

Permalink
Fix printf format %p to %llu to resolve compiler warning (#2)
Browse files Browse the repository at this point in the history
* Fix printf format %p to %llu to resolve compiler warning

* change

---------

Co-authored-by: Tom E <[email protected]>
  • Loading branch information
nick-botticelli and plooshi authored Mar 9, 2023
1 parent 98e7bc1 commit 6baacc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int main(int argc, const char * argv[]) {
for (auto p : patches) {
char *buf = (char*)ibp->buf();
offset_t off = (offset_t)(p._location - ibp->find_base());
printf("applying patch=%p : ",p._location);
printf("applying patch=0x%llx : ",p._location);
for (int i=0; i<p._patchSize; i++) {
printf("%02x",((uint8_t*)p._patch)[i]);
}
Expand Down

0 comments on commit 6baacc8

Please sign in to comment.