Skip to content
Snippets Groups Projects
Commit db9b6200 authored by Alison Chaiken's avatar Alison Chaiken Committed by Tom Rini
Browse files

EFI: replace number with UUID_STR_LEN macro


Changes since v6: none.

Signed-off-by: default avatarAlison Chaiken <alison@peloton-tech.com>
parent fe84c48e
No related branches found
No related tags found
No related merge requests found
...@@ -183,7 +183,7 @@ void part_print_efi(struct blk_desc *dev_desc) ...@@ -183,7 +183,7 @@ void part_print_efi(struct blk_desc *dev_desc)
ALLOC_CACHE_ALIGN_BUFFER_PAD(gpt_header, gpt_head, 1, dev_desc->blksz); ALLOC_CACHE_ALIGN_BUFFER_PAD(gpt_header, gpt_head, 1, dev_desc->blksz);
gpt_entry *gpt_pte = NULL; gpt_entry *gpt_pte = NULL;
int i = 0; int i = 0;
char uuid[37]; char uuid[UUID_STR_LEN + 1];
unsigned char *uuid_bin; unsigned char *uuid_bin;
/* This function validates AND fills in the GPT header and PTE */ /* This function validates AND fills in the GPT header and PTE */
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <blk.h> #include <blk.h>
#include <ide.h> #include <ide.h>
#include <uuid.h>
struct block_drvr { struct block_drvr {
char *name; char *name;
...@@ -54,10 +55,10 @@ typedef struct disk_partition { ...@@ -54,10 +55,10 @@ typedef struct disk_partition {
uchar type[32]; /* string type description */ uchar type[32]; /* string type description */
int bootable; /* Active/Bootable flag is set */ int bootable; /* Active/Bootable flag is set */
#if CONFIG_IS_ENABLED(PARTITION_UUIDS) #if CONFIG_IS_ENABLED(PARTITION_UUIDS)
char uuid[37]; /* filesystem UUID as string, if exists */ char uuid[UUID_STR_LEN + 1]; /* filesystem UUID as string, if exists */
#endif #endif
#ifdef CONFIG_PARTITION_TYPE_GUID #ifdef CONFIG_PARTITION_TYPE_GUID
char type_guid[37]; /* type GUID as string, if exists */ char type_guid[UUID_STR_LEN + 1]; /* type GUID as string, if exists */
#endif #endif
#ifdef CONFIG_DOS_PARTITION #ifdef CONFIG_DOS_PARTITION
uchar sys_ind; /* partition type */ uchar sys_ind; /* partition type */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment