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

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

Issue 2374001: cgpt supports dev and add/delete/modify 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 4c3ed80411c89184d055cebfb0050d9fc06d72b3..a54d7bab52a15929e28051145a246237b6127cc9 100644
--- a/src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c
+++ b/src/platform/vboot_reference/utility/cgpt/cgpt_attribute.c
@@ -27,6 +27,7 @@ static struct option attribute_options[] = {
{.name = "successful", .has_arg = required_argument, .flag = 0, .val = 's'},
{.name = "tries", .has_arg = required_argument, .flag = 0, .val = 't'},
{.name = "priority", .has_arg = required_argument, .flag = 0, .val = 'p'},
+ { /* last element, which should be zero. */ }
};
/* Extra information than struct option, please update this structure if you
@@ -63,6 +64,7 @@ static struct option_details attribute_options_details[] = {
.validator = InNumberRange,
.valid_range = &range_15_0,
.parsed = &priority},
+ { /* last element, which should be zero. */ }
};
void AttributeHelp() {
@@ -101,8 +103,6 @@ int CgptAttribute(int argc, char *argv[]) {
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. */
if (partition == NOT_INITED) {
int i;

Powered by Google App Engine
This is Rietveld 408576698