diff options
author | Taylor Hutt <thutt@chromium.org> | 2012-10-12 14:26:09 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-22 08:29:55 -0700 |
commit | 9936be31fb11a702f6f2f867a2e65dc423ed7d36 (patch) | |
tree | 5d07415ecf7bf321eff7e4fdc49e54f4ae7b48a9 /disk/part_efi.c | |
parent | 0c9c8fb5ec9c2ec20670dce0c5ff0752371893da (diff) |
disk: Address cast and format errors
This change addresses a few printf-formatting errors, and a typecast
error.
Signed-off-by: Taylor Hutt <thutt@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'disk/part_efi.c')
-rw-r--r-- | disk/part_efi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/disk/part_efi.c b/disk/part_efi.c index 7a39d52f8ee..a3873cebb33 100644 --- a/disk/part_efi.c +++ b/disk/part_efi.c @@ -422,7 +422,7 @@ static gpt_entry *alloc_read_gpt_entries(block_dev_desc_t * dev_desc, count = le32_to_int(pgpt_head->num_partition_entries) * le32_to_int(pgpt_head->sizeof_partition_entry); - debug("%s: count = %lu * %lu = %u\n", __func__, + debug("%s: count = %lu * %lu = %zu\n", __func__, le32_to_int(pgpt_head->num_partition_entries), le32_to_int(pgpt_head->sizeof_partition_entry), count); @@ -432,7 +432,8 @@ static gpt_entry *alloc_read_gpt_entries(block_dev_desc_t * dev_desc, } if (count == 0 || pte == NULL) { - printf("%s: ERROR: Can't allocate 0x%X bytes for GPT Entries\n", + printf("%s: ERROR: Can't allocate 0x%zX " + "bytes for GPT Entries\n", __func__, count); return NULL; } @@ -474,7 +475,7 @@ static int is_pte_valid(gpt_entry * pte) sizeof(unused_guid.b)) == 0) { debug("%s: Found an unused PTE GUID at 0x%08X\n", __func__, - (unsigned int)pte); + (unsigned int)(uintptr_t)pte); return 0; } else { |