Commit 5afb8d151f5249914152dfdc7919a3a46b6b6a76

Authored by Simon Glass
Committed by Tom Rini
1 parent 1bb718cdab

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>

Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff

... ... @@ -886,9 +886,10 @@
886 886 count = le32_to_cpu(pgpt_head->num_partition_entries) *
887 887 le32_to_cpu(pgpt_head->sizeof_partition_entry);
888 888  
889   - debug("%s: count = %u * %u = %zu\n", __func__,
  889 + debug("%s: count = %u * %u = %lu\n", __func__,
890 890 (u32) le32_to_cpu(pgpt_head->num_partition_entries),
891   - (u32) le32_to_cpu(pgpt_head->sizeof_partition_entry), count);
  891 + (u32) le32_to_cpu(pgpt_head->sizeof_partition_entry),
  892 + (ulong)count);
892 893  
893 894 /* Allocate memory for PTE, remember to FREE */
894 895 if (count != 0) {
... ... @@ -897,9 +898,8 @@
897 898 }
898 899  
899 900 if (count == 0 || pte == NULL) {
900   - printf("%s: ERROR: Can't allocate 0x%zX "
901   - "bytes for GPT Entries\n",
902   - __func__, count);
  901 + printf("%s: ERROR: Can't allocate %#lX bytes for GPT Entries\n",
  902 + __func__, (ulong)count);
903 903 return NULL;
904 904 }
905 905