part_efi: Fix compiler warning on 32-bit sandbox
This fixes a mismatch between the %zu format and the type used on sandbox. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
1bb718cdab
commit
5afb8d151f
@ -886,9 +886,10 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc,
|
|||||||
count = le32_to_cpu(pgpt_head->num_partition_entries) *
|
count = le32_to_cpu(pgpt_head->num_partition_entries) *
|
||||||
le32_to_cpu(pgpt_head->sizeof_partition_entry);
|
le32_to_cpu(pgpt_head->sizeof_partition_entry);
|
||||||
|
|
||||||
debug("%s: count = %u * %u = %zu\n", __func__,
|
debug("%s: count = %u * %u = %lu\n", __func__,
|
||||||
(u32) le32_to_cpu(pgpt_head->num_partition_entries),
|
(u32) le32_to_cpu(pgpt_head->num_partition_entries),
|
||||||
(u32) le32_to_cpu(pgpt_head->sizeof_partition_entry), count);
|
(u32) le32_to_cpu(pgpt_head->sizeof_partition_entry),
|
||||||
|
(ulong)count);
|
||||||
|
|
||||||
/* Allocate memory for PTE, remember to FREE */
|
/* Allocate memory for PTE, remember to FREE */
|
||||||
if (count != 0) {
|
if (count != 0) {
|
||||||
@ -897,9 +898,8 @@ static gpt_entry *alloc_read_gpt_entries(struct blk_desc *dev_desc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (count == 0 || pte == NULL) {
|
if (count == 0 || pte == NULL) {
|
||||||
printf("%s: ERROR: Can't allocate 0x%zX "
|
printf("%s: ERROR: Can't allocate %#lX bytes for GPT Entries\n",
|
||||||
"bytes for GPT Entries\n",
|
__func__, (ulong)count);
|
||||||
__func__, count);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user