diff options
author | Jagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com> | 2017-09-28 18:01:21 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-29 23:25:38 -0700 |
commit | f1084d6a737a8b14deacb59cdfb501dd9d8c436d (patch) | |
tree | 98bb7ecc5c5a9f8512a1f3f028695808f8ae2457 /common/vboot_hash.c | |
parent | aca2692f3224836eea5c2e5f1474e1d454af7062 (diff) | |
download | chrome-ec-f1084d6a737a8b14deacb59cdfb501dd9d8c436d.tar.gz |
vboot: Add error message in hash command
Hash command expects second parameter to be either
abort, RO, RW. If not then exit the function by
displaying error message instead of calculating hash.
BUG=NONE
BRANCH=NONE
TEST=On EC console 'hash help' should display error message
with usage info.
Change-Id: I4fcad97ce0da1cd48a458de1c659aa3c6b2a60b9
Signed-off-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/691436
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common/vboot_hash.c')
-rw-r--r-- | common/vboot_hash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/vboot_hash.c b/common/vboot_hash.c index 5a3957274f..e6b83aafe3 100644 --- a/common/vboot_hash.c +++ b/common/vboot_hash.c @@ -345,6 +345,7 @@ static int command_hash(int argc, char **argv) system_get_image_used(SYSTEM_IMAGE_RO), NULL, 0); } + return EC_ERROR_PARAM2; } if (argc >= 3) { |