platform: msm_shared: Fix partition offset overflow in avb
The partition offset maybe is more than 32bit, so define the UINTN
as uint64_t instead of uintptr_t to fix this problem.
Change-Id: I2b61ac962abf1009de5950113eb7222e44809cfd
diff --git a/platform/msm_shared/avb/VerifiedBoot.c b/platform/msm_shared/avb/VerifiedBoot.c
index fc14754..4150f9a 100644
--- a/platform/msm_shared/avb/VerifiedBoot.c
+++ b/platform/msm_shared/avb/VerifiedBoot.c
@@ -476,7 +476,7 @@
}
if (Info->num_loaded_images < NumRequestedPartition) {
- dprintf(CRITICAL, "ERROR: AvbSlotVerify slot data: num of loaded partitions %d, requested %lu\n",Info->num_loaded_images, NumRequestedPartition);
+ dprintf(CRITICAL, "ERROR: AvbSlotVerify slot data: num of loaded partitions %d, requested %llu\n",Info->num_loaded_images, NumRequestedPartition);
Status = EFI_LOAD_ERROR;
goto out;
}