diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-03-14 22:35:41 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-14 22:35:41 +0100 |
commit | 679baa06b79e0c9100ce05fa0191928fc2a691fb (patch) | |
tree | d09a8d683cf713935e395168e403d1fbd61ea971 /applypatch/applypatch.c | |
parent | am 239fb930: am a7266ef0: Merge "separate fbdev-specific code out from minui" (diff) | |
parent | am 026ebe02: Merge "Recovery 64-bit compile issues" (diff) | |
download | android_bootable_recovery-679baa06b79e0c9100ce05fa0191928fc2a691fb.tar android_bootable_recovery-679baa06b79e0c9100ce05fa0191928fc2a691fb.tar.gz android_bootable_recovery-679baa06b79e0c9100ce05fa0191928fc2a691fb.tar.bz2 android_bootable_recovery-679baa06b79e0c9100ce05fa0191928fc2a691fb.tar.lz android_bootable_recovery-679baa06b79e0c9100ce05fa0191928fc2a691fb.tar.xz android_bootable_recovery-679baa06b79e0c9100ce05fa0191928fc2a691fb.tar.zst android_bootable_recovery-679baa06b79e0c9100ce05fa0191928fc2a691fb.zip |
Diffstat (limited to 'applypatch/applypatch.c')
-rw-r--r-- | applypatch/applypatch.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c index c9c40c98f..60e9e4a5c 100644 --- a/applypatch/applypatch.c +++ b/applypatch/applypatch.c @@ -231,7 +231,7 @@ static int LoadPartitionContents(const char* filename, FileContents* file) { break; } if (next != read) { - printf("short read (%d bytes of %d) for partition \"%s\"\n", + printf("short read (%zu bytes of %zu) for partition \"%s\"\n", read, next, partition); free(file->data); file->data = NULL; @@ -258,7 +258,7 @@ static int LoadPartitionContents(const char* filename, FileContents* file) { if (memcmp(sha_so_far, parsed_sha, SHA_DIGEST_SIZE) == 0) { // we have a match. stop reading the partition; we'll return // the data we've read so far. - printf("partition read matched size %d sha %s\n", + printf("partition read matched size %zu sha %s\n", size[index[i]], sha1sum[index[i]]); break; } @@ -386,7 +386,7 @@ int WriteToPartition(unsigned char* data, size_t len, size_t written = mtd_write_data(ctx, (char*)data, len); if (written != len) { - printf("only wrote %d of %d bytes to MTD %s\n", + printf("only wrote %zu of %zu bytes to MTD %s\n", written, len, partition); mtd_write_close(ctx); return -1; @@ -460,20 +460,20 @@ int WriteToPartition(unsigned char* data, size_t len, if (errno == EINTR) { read_count = 0; } else { - printf("verify read error %s at %d: %s\n", + printf("verify read error %s at %zu: %s\n", partition, p, strerror(errno)); return -1; } } if ((size_t)read_count < to_read) { - printf("short verify read %s at %d: %d %d %s\n", + printf("short verify read %s at %zu: %zd %zu %s\n", partition, p, read_count, to_read, strerror(errno)); } so_far += read_count; } if (memcmp(buffer, data+p, to_read)) { - printf("verification failed starting at %d\n", p); + printf("verification failed starting at %zu\n", p); start = p; break; } |