Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Unified Diff: src/platform/vboot_reference/cgptlib/gpt.h

Issue 1701017: Add more test cases for GptInit() and fixed some bugs (Closed)
Patch Set: refine for code review Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/vboot_reference/cgptlib/crc32.c ('k') | src/platform/vboot_reference/cgptlib/quick_sort.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/cgptlib/gpt.h
diff --git a/src/platform/vboot_reference/cgptlib/gpt.h b/src/platform/vboot_reference/cgptlib/gpt.h
index 95f0efba321c81ba581c2e9dfe8549f7d09122c9..5d49b17b73a02bf60606cbe03c8c22d679d378b8 100644
--- a/src/platform/vboot_reference/cgptlib/gpt.h
+++ b/src/platform/vboot_reference/cgptlib/gpt.h
@@ -17,15 +17,15 @@
#define GPT_HEADER_REVISION 0x00010000
#define GPT_ENT_TYPE_EFI \
- {{Uuid: {0xc12a7328,0xf81f,0x11d2,0xba,0x4b,{0x00,0xa0,0xc9,0x3e,0xc9,0x3b}}}}
+ {{{0xc12a7328,0xf81f,0x11d2,0xba,0x4b,{0x00,0xa0,0xc9,0x3e,0xc9,0x3b}}}}
#define GPT_ENT_TYPE_UNUSED \
- {{Uuid: {0x00000000,0x0000,0x0000,0x00,0x00,{0x00,0x00,0x00,0x00,0x00,0x00}}}}
+ {{{0x00000000,0x0000,0x0000,0x00,0x00,{0x00,0x00,0x00,0x00,0x00,0x00}}}}
#define GPT_ENT_TYPE_CHROMEOS_KERNEL \
- {{Uuid: {0xfe3a2a5d,0x4f32,0x41a7,0xb7,0x25,{0xac,0xcc,0x32,0x85,0xa3,0x09}}}}
+ {{{0xfe3a2a5d,0x4f32,0x41a7,0xb7,0x25,{0xac,0xcc,0x32,0x85,0xa3,0x09}}}}
#define GPT_ENT_TYPE_CHROMEOS_ROOTFS \
- {{Uuid: {0x3cb8e202,0x3b7e,0x47dd,0x8a,0x3c,{0x7f,0xf2,0xa1,0x3c,0xfc,0xec}}}}
+ {{{0x3cb8e202,0x3b7e,0x47dd,0x8a,0x3c,{0x7f,0xf2,0xa1,0x3c,0xfc,0xec}}}}
#define GPT_ENT_TYPE_CHROMEOS_RESERVED \
- {{Uuid: {0x2e0a753d,0x9e48,0x43b0,0x83,0x37,{0xb1,0x51,0x92,0xcb,0x1b,0x5e}}}}
+ {{{0x2e0a753d,0x9e48,0x43b0,0x83,0x37,{0xb1,0x51,0x92,0xcb,0x1b,0x5e}}}}
#define UUID_NODE_LEN 6
#define GUID_SIZE 16
@@ -44,7 +44,7 @@ typedef struct {
uint8_t node[UUID_NODE_LEN];
} Uuid;
uint8_t raw[GUID_SIZE];
- };
+ } u;
} __attribute__((packed)) Guid;
/* GPT header defines how many partitions exist on a drive and sectors managed.
« no previous file with comments | « src/platform/vboot_reference/cgptlib/crc32.c ('k') | src/platform/vboot_reference/cgptlib/quick_sort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698