diff options
author | Joel Kitching <kitching@google.com> | 2019-07-31 13:17:08 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-06 15:14:47 +0000 |
commit | 90671fa6d2d3d48fab6408c7493be61bcee5868e (patch) | |
tree | 73a740440899a86d87fcec45717fba23ea9c2838 /utility | |
parent | 9c906110972f538ee5753845916ebd1f826f54b6 (diff) | |
download | vboot-90671fa6d2d3d48fab6408c7493be61bcee5868e.tar.gz |
vboot: rename VbError_t typedef to vb2_error_t
As part of the conversion of error codes from vboot1 to vboot2,
replace all instances of VbError_t with vb2_error_t.
vboot2 currently uses the int type for return values, but we
would like to implement the use of vb2_error_t instead, which is
potentially clearer than simply using an int. Existing functions
will be converted to use vb2_error_t in a subsequent CL.
BUG=b:124141368, chromium:988410
TEST=make clean && make runtests
BRANCH=none
Change-Id: Iee90d9a1f46bcf5f088e981ba6ddbcf886ff0f18
Signed-off-by: Joel Kitching <kitching@google.com>
Cq-Depend: chromium:1728112
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1722914
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'utility')
-rw-r--r-- | utility/load_kernel_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c index c2ff61e6..2fbf0c54 100644 --- a/utility/load_kernel_test.c +++ b/utility/load_kernel_test.c @@ -32,7 +32,7 @@ static FILE *image_file = NULL; /* Boot device stub implementations to read from the image file */ -VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, +vb2_error_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, uint64_t lba_count, void *buffer) { printf("Read(%" PRIu64 ", %" PRIu64 ")\n", lba_start, lba_count); @@ -52,7 +52,7 @@ VbError_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, } -VbError_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, +vb2_error_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, uint64_t lba_count, const void *buffer) { printf("Write(%" PRIu64 ", %" PRIu64 ")\n", lba_start, lba_count); @@ -86,7 +86,7 @@ int main(int argc, char* argv[]) { uint8_t* key_blob = NULL; VbSharedDataHeader* shared; struct vb2_gbb_header* gbb; - VbError_t rv; + vb2_error_t rv; int c, argsleft; int errorcnt = 0; char *e = 0; |