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

Unified Diff: show.c

Issue 866005: Describe PMBR in terms of syslinux GPT extension. (Closed)
Patch Set: Created 10 years, 9 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
« gpt.h ('K') | « gpt.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: show.c
diff --git a/show.c b/show.c
index 5b34819ee4cca2ca85b9855456623b80ffa78774..eb0f617906ee8978526ee7aa068eb74cde13887c 100644
--- a/show.c
+++ b/show.c
@@ -183,7 +183,18 @@ show(int fd __unused)
}
break;
case MAP_TYPE_PMBR:
- printf("PMBR");
+ mbr = m->map_data;
+ if (le16toh(mbr->magic_number) == MBR_MAGIC)
+ {
+ char *s;
+ uuid_to_string(&mbr->boot_guid, &s, NULL);
+ printf("PMBR (Boot GUID: %s)", s);
+ free(s);
+ }
+ else
+ {
+ printf("PMBR (no magic)");
+ }
break;
}
putchar('\n');
« gpt.h ('K') | « gpt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698