X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=disk%2Fpart_efi.h;h=5903e7c812a6e21e1a2420d338bd4a0e402c939e;hb=c9b2feafaaf0a7998347589f9a29f7169873af6e;hp=6bbb06bde904450f7d4d0332eb8925ec8be5870a;hpb=c06d9bbbeb0416f189e841ffb214ada6194ed874;p=u-boot diff --git a/disk/part_efi.h b/disk/part_efi.h index 6bbb06bde9..5903e7c812 100644 --- a/disk/part_efi.h +++ b/disk/part_efi.h @@ -117,13 +117,14 @@ typedef struct _gpt_entry_attributes { unsigned long long type_guid_specific:16; } __attribute__ ((packed)) gpt_entry_attributes; +#define PARTNAME_SZ (72 / sizeof(efi_char16_t)) typedef struct _gpt_entry { efi_guid_t partition_type_guid; efi_guid_t unique_partition_guid; unsigned char starting_lba[8]; unsigned char ending_lba[8]; gpt_entry_attributes attributes; - efi_char16_t partition_name[72 / sizeof(efi_char16_t)]; + efi_char16_t partition_name[PARTNAME_SZ]; } __attribute__ ((packed)) gpt_entry;