diff options
author | JP Abgrall <jpa@google.com> | 2014-08-05 02:12:37 +0200 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-05 02:12:37 +0200 |
commit | b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3 (patch) | |
tree | ec6d4bad929d2e9615c1e676b32ae84b07576eeb | |
parent | am eaf33654: only do uncryption on packages in /data (diff) | |
parent | Fix length printing + formats (diff) | |
download | android_bootable_recovery-b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3.tar android_bootable_recovery-b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3.tar.gz android_bootable_recovery-b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3.tar.bz2 android_bootable_recovery-b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3.tar.lz android_bootable_recovery-b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3.tar.xz android_bootable_recovery-b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3.tar.zst android_bootable_recovery-b04d0b0dde1a3a0ad9f7dd7e829d49f1d83a9cb3.zip |
-rw-r--r-- | roots.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -235,15 +235,15 @@ int format_volume(const char* volume) { result = make_ext4fs(v->blk_device, length, volume, sehandle); } else { /* Has to be f2fs because we checked earlier. */ if (v->key_loc != NULL && strcmp(v->key_loc, "footer") == 0 && length < 0) { - LOGE("format_volume: crypt footer + negative length (%lld) not supported on %s\n", v->fs_type, length); + LOGE("format_volume: crypt footer + negative length (%zd) not supported on %s\n", length, v->fs_type); return -1; } if (length < 0) { - LOGE("format_volume: negative length (%ld) not supported on %s\n", length, v->fs_type); + LOGE("format_volume: negative length (%zd) not supported on %s\n", length, v->fs_type); return -1; } char *num_sectors; - if (asprintf(&num_sectors, "%ld", length / 512) <= 0) { + if (asprintf(&num_sectors, "%zd", length / 512) <= 0) { LOGE("format_volume: failed to create %s command for %s\n", v->fs_type, v->blk_device); return -1; } |