summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2016-09-07 16:51:23 -0400
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-02-02 04:09:51 +0000
commit79dcfc138e0a37e269e907e471892c6fe72fe8eb (patch)
tree7ccbf7e721c3fcd3e269d0057b07b7974977838a
parentb9fc93d59dd9fe7cc09bb20fd54756a54db3efbc (diff)
downloadvboot-79dcfc138e0a37e269e907e471892c6fe72fe8eb.tar.gz
cgpt: fix -A documentation to match reality
The documentation claims the -A option shows the raw 64-bit attributes field when in reality it only shows the high reserved 16-bits. Change the docs to match the code. BUG=chromium:644845 TEST=vboot_reference unittests pass BRANCH=None Change-Id: If163896ddbca0dc27ac8205db313031e73a68fd7 Reviewed-on: https://chromium-review.googlesource.com/382431 Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/897389 Reviewed-by: Wei-Han Chen <stimim@chromium.org> Commit-Queue: Wei-Han Chen <stimim@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org>
-rw-r--r--cgpt/cmd_add.c2
-rw-r--r--cgpt/cmd_show.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cgpt/cmd_add.c b/cgpt/cmd_add.c
index 0d5ad0d6..ca379a22 100644
--- a/cgpt/cmd_add.c
+++ b/cgpt/cmd_add.c
@@ -27,7 +27,7 @@ static void Usage(void)
" -S NUM set Successful flag (0|1)\n"
" -T NUM set Tries flag (0-15)\n"
" -P NUM set Priority flag (0-15)\n"
- " -A NUM set raw 64-bit attribute value\n"
+ " -A NUM set raw 16-bit attribute value (bits 48-63)\n"
"\n"
"Use the -i option to modify an existing partition.\n"
"The -b, -s, and -t options must be given for new partitions.\n"
diff --git a/cgpt/cmd_show.c b/cgpt/cmd_show.c
index c5a5f445..860d80e7 100644
--- a/cgpt/cmd_show.c
+++ b/cgpt/cmd_show.c
@@ -32,7 +32,7 @@ static void Usage(void)
" -S Successful flag\n"
" -T Tries flag\n"
" -P Priority flag\n"
- " -A raw 64-bit attribute value\n"
+ " -A raw 16-bit attribute value (bits 48-63)\n"
" -d Debug output (including invalid headers)\n"
"\n", progname);
}