summaryrefslogtreecommitdiff
path: root/disk/part_efi.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2012-10-08 08:14:36 +0000
committerTom Rini <trini@ti.com>2012-10-17 07:59:10 -0700
commit13bf2f55d9ea6620f0bcdc4a9f0b67f6ec81885f (patch)
treeb6c6c5357006a74fe39de7f829b9f1a356ba3bd5 /disk/part_efi.c
parent1c8346ab38a981559a25492dcdfda211cb09aab4 (diff)
downloadu-boot-imx-13bf2f55d9ea6620f0bcdc4a9f0b67f6ec81885f.zip
u-boot-imx-13bf2f55d9ea6620f0bcdc4a9f0b67f6ec81885f.tar.gz
u-boot-imx-13bf2f55d9ea6620f0bcdc4a9f0b67f6ec81885f.tar.bz2
disk: part_efi: print raw partition attributes
When printing the EFI partition table, print the raw attributes. Convert struct gpt_entry_attributes to a union to allow raw access. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'disk/part_efi.c')
-rw-r--r--disk/part_efi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disk/part_efi.c b/disk/part_efi.c
index 6b80cd9..d563509 100644
--- a/disk/part_efi.c
+++ b/disk/part_efi.c
@@ -158,6 +158,7 @@ void print_part_efi(block_dev_desc_t * dev_desc)
debug("%s: gpt-entry at %p\n", __func__, gpt_pte);
printf("Part\tStart LBA\tEnd LBA\t\tName\n");
+ printf("\tAttributes\n");
printf("\tType UUID\n");
printf("\tPartition UUID\n");
@@ -170,6 +171,7 @@ void print_part_efi(block_dev_desc_t * dev_desc)
le64_to_int(gpt_pte[i].starting_lba),
le64_to_int(gpt_pte[i].ending_lba),
print_efiname(&gpt_pte[i]));
+ printf("\tattrs:\t0x%016llx\n", gpt_pte[i].attributes.raw);
uuid_string(gpt_pte[i].partition_type_guid.b, uuid);
printf("\ttype:\t%s\n", uuid);
uuid_string(gpt_pte[i].unique_partition_guid.b, uuid);