summaryrefslogtreecommitdiff
path: root/cgpt
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2011-06-16 16:02:56 -0700
committerBill Richardson <wfrichar@chromium.org>2011-06-17 10:22:22 -0700
commitf155ab3a26d07f94dcf64732d6e19b59da1c96ed (patch)
tree9122c48d1c709de5584b009e06440628ec903bdb /cgpt
parent8fbdc10ebad1b14794aba593025338f017261972 (diff)
downloadvboot-f155ab3a26d07f94dcf64732d6e19b59da1c96ed.tar.gz
Add vbutil_what_keys utility to figure out how a disk image is signed.
BUG=none TEST=none Change-Id: I8a2e0d07384f0437064b964c6b292af9c3a67ea1 Reviewed-on: http://gerrit.chromium.org/gerrit/2802 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Tested-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'cgpt')
-rw-r--r--cgpt/cmd_find.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgpt/cmd_find.c b/cgpt/cmd_find.c
index 487ecf61..7a0523ff 100644
--- a/cgpt/cmd_find.c
+++ b/cgpt/cmd_find.c
@@ -149,7 +149,10 @@ static void showmatch(char *filename, int partnum, GptEntry *entry) {
char * format = "%s%d\n";
if (strncmp("/dev/mmcblk", filename, 11) == 0)
format = "%sp%d\n";
- printf(format, filename, partnum);
+ if (numeric)
+ printf("%d\n", partnum);
+ else
+ printf(format, filename, partnum);
if (verbose > 0)
EntryDetails(entry, partnum - 1, numeric);
}