diff options
author | Simon Glass <sjg@chromium.org> | 2016-02-29 15:25:36 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-03-14 15:34:50 -0600 |
commit | f8d6165d4b45122800cf7b2edf9eca1a464194fd (patch) | |
tree | f053442a00f45bb8d477caf04d52d08c6e49ed33 /disk | |
parent | 02c80a0e138ff656219050afa6ecf2368e6c9293 (diff) | |
download | u-boot-f8d6165d4b45122800cf7b2edf9eca1a464194fd.tar.gz u-boot-f8d6165d4b45122800cf7b2edf9eca1a464194fd.tar.xz u-boot-f8d6165d4b45122800cf7b2edf9eca1a464194fd.zip |
dm: part: Correct a sandbox build warning
Adjust the cast to avoid a warning when stdint.h is used.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'disk')
-rw-r--r-- | disk/part_efi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/disk/part_efi.c b/disk/part_efi.c index db5e7ed069..7bd840f18c 100644 --- a/disk/part_efi.c +++ b/disk/part_efi.c @@ -658,11 +658,13 @@ int gpt_verify_partitions(struct blk_desc *dev_desc, gpt_part_size = le64_to_cpu(gpt_e[i].ending_lba) - le64_to_cpu(gpt_e[i].starting_lba) + 1; debug("size(LBA) - GPT: %8llu, ENV: %8llu ", - gpt_part_size, (u64) partitions[i].size); + (unsigned long long)gpt_part_size, + (unsigned long long)partitions[i].size); if (le64_to_cpu(gpt_part_size) != partitions[i].size) { error("Partition %s size: %llu does not match %llu!\n", - efi_str, gpt_part_size, (u64) partitions[i].size); + efi_str, (unsigned long long)gpt_part_size, + (unsigned long long)partitions[i].size); return -1; } @@ -678,12 +680,12 @@ int gpt_verify_partitions(struct blk_desc *dev_desc, /* Check if GPT and ENV start LBAs match */ debug("start LBA - GPT: %8llu, ENV: %8llu\n", le64_to_cpu(gpt_e[i].starting_lba), - (u64) partitions[i].start); + (unsigned long long)partitions[i].start); if (le64_to_cpu(gpt_e[i].starting_lba) != partitions[i].start) { error("Partition %s start: %llu does not match %llu!\n", efi_str, le64_to_cpu(gpt_e[i].starting_lba), - (u64) partitions[i].start); + (unsigned long long)partitions[i].start); return -1; } } |