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

Unified Diff: src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c

Issue 2231002: complete 'cgpt show' and refactor for incoming commands. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Created 10 years, 7 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
Index: src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c
diff --git a/src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c b/src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c
index 82600c4f747d2638739335f0aea6b19264ce9351..4c3ed80411c89184d055cebfb0050d9fc06d72b3 100644
--- a/src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c
+++ b/src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c
@@ -99,6 +99,8 @@ int CgptAttribute(int argc, char *argv[]) {
if (CGPT_OK != OpenDriveInLastArgument(argc, argv, &drive))
return CGPT_FAILED;
+ if (CheckValid(&drive) != CGPT_OK) return CGPT_FAILED;
+
debug("[OPTION] i:%d b:%d s:%d t:%d p:%d\n", partition, bad, successful, tries, priority); /* FIXME */
/* partition is not specified, search for the first Chromeos kernel. */
« no previous file with comments | « src/platform/vboot_reference/utility/cgpt/cgpt.c ('k') | src/platform/vboot_reference/utility/cgpt/cgpt_repair.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698