summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index c7186a0..e82bce2 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1549,39 +1549,3 @@ irecv_client_t irecv_reconnect(irecv_client_t client, int initial_pause) {
new_client->progress_callback = progress_callback;
return new_client;
}
-
-void irecv_hexdump(unsigned char* buf, unsigned int len, unsigned int addr) {
- int i, j;
- printf("0x%08x: ", addr);
- for (i = 0; i < (int)len; i++) {
- if (i % 16 == 0 && i != 0) {
- for (j=i-16; j < i; j++) {
- unsigned char car = buf[j];
- if (car < 0x20 || car > 0x7f) car = '.';
- printf("%c", car);
- }
- printf("\n");
- addr += 0x10;
- printf("0x%08x: ", addr);
- }
- printf("%02x ", buf[i]);
- }
-
- int done = (i % 16);
- int remains = 16 - done;
- if (done > 0) {
- for (j = 0; j < remains; j++) {
- printf(" ");
- }
- }
-
- if ((i - done) >= 0) {
- if (done == 0 && i > 0) done = 16;
- for (j = (i - done); j < i; j++) {
- unsigned char car = buf[j];
- if (car < 0x20 || car > 0x7f) car = '.';
- printf("%c", car);
- }
- }
- printf("\n");
-}