diff options
author | Joel Kitching <kitching@google.com> | 2019-07-22 14:21:35 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-24 06:53:41 +0000 |
commit | e050a2c88fc963cb97d9794849e9e2b60fabbe77 (patch) | |
tree | f037b8c93a7dc4b8a5d23c9b7a643d1dedfc71e0 /host/lib | |
parent | 34abb32ed2e48ccad95320c37fb001df8e3442fd (diff) | |
download | vboot-e050a2c88fc963cb97d9794849e9e2b60fabbe77.tar.gz |
vboot: deprecate VbExError function
Convert uses of this function to call VB2_DEBUG and manually
exit if necessary.
BUG=b:124141368
TEST=make clean && make runtests
BRANCH=none
Change-Id: I9006b1a9c66645757d33310d96207233b88eaed5
Signed-off-by: Joel Kitching <kitching@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1710340
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/host_key2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/host_key2.c b/host/lib/host_key2.c index b33ba164..64aab1b4 100644 --- a/host/lib/host_key2.c +++ b/host/lib/host_key2.c @@ -44,14 +44,14 @@ struct vb2_private_key *vb2_read_private_key(const char *filename) uint8_t *buf = NULL; uint32_t bufsize = 0; if (VB2_SUCCESS != vb2_read_file(filename, &buf, &bufsize)) { - VbExError("unable to read from file %s\n", filename); + VB2_DEBUG("unable to read from file %s\n", filename); return NULL; } struct vb2_private_key *key = (struct vb2_private_key *)calloc(sizeof(*key), 1); if (!key) { - VbExError("Unable to allocate private key\n"); + VB2_DEBUG("Unable to allocate private key\n"); free(buf); return NULL; } @@ -65,7 +65,7 @@ struct vb2_private_key *vb2_read_private_key(const char *filename) d2i_RSAPrivateKey(0, &start, bufsize - sizeof(alg)); if (!key->rsa_private_key) { - VbExError("Unable to parse RSA private key\n"); + VB2_DEBUG("Unable to parse RSA private key\n"); free(buf); free(key); return NULL; |