diff options
author | Joel Kitching <kitching@google.com> | 2019-07-29 18:51:00 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-13 08:23:54 +0000 |
commit | cf49e7b6ae5abee0552b596ec11b695b5d15853c (patch) | |
tree | a6a6ef6cdf73ee3078b07f0c195795d67c625b0b /utility | |
parent | e6b803355ee3dc548a4519a71b29672d856f9bc5 (diff) | |
download | vboot-cf49e7b6ae5abee0552b596ec11b695b5d15853c.tar.gz |
vboot: replace VBERROR_SUCCESS with VB2_SUCCESS
Replace vboot1-style VBERROR_SUCCESS with VB2_SUCCESS
(trivial change since both are equal values).
BUG=b:124141368, chromium:988410
TEST=make clean && make runtests
BRANCH=none
Change-Id: I46e02471a031e9f36ec869d11d0b957d1c1b5769
Signed-off-by: Joel Kitching <kitching@google.com>
Cq-Depend: chromium:1728114
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1722915
Commit-Queue: Joel Kitching <kitching@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'utility')
-rw-r--r-- | utility/load_kernel_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utility/load_kernel_test.c b/utility/load_kernel_test.c index fe73fa8b..ba3ab89b 100644 --- a/utility/load_kernel_test.c +++ b/utility/load_kernel_test.c @@ -48,7 +48,7 @@ vb2_error_t VbExDiskRead(VbExDiskHandle_t handle, uint64_t lba_start, fprintf(stderr, "Read error."); return 1; } - return VBERROR_SUCCESS; + return VB2_SUCCESS; } @@ -64,14 +64,14 @@ vb2_error_t VbExDiskWrite(VbExDiskHandle_t handle, uint64_t lba_start, } /* TODO: enable writes, once we're sure it won't trash our example file */ - return VBERROR_SUCCESS; + return VB2_SUCCESS; fseek(image_file, lba_start * lkp.bytes_per_lba, SEEK_SET); if (1 != fwrite(buffer, lba_count * lkp.bytes_per_lba, 1, image_file)) { fprintf(stderr, "Read error."); return 1; } - return VBERROR_SUCCESS; + return VB2_SUCCESS; } @@ -250,7 +250,7 @@ int main(int argc, char* argv[]) { rv = LoadKernel(&ctx, &lkp); printf("LoadKernel() returned %d\n", rv); - if (VBERROR_SUCCESS == rv) { + if (VB2_SUCCESS == rv) { printf("Partition number: %u\n", lkp.partition_number); printf("Bootloader address: %" PRIu64 "\n", lkp.bootloader_address); printf("Bootloader size: %u\n", lkp.bootloader_size); @@ -277,5 +277,5 @@ int main(int argc, char* argv[]) { fclose(image_file); free(lkp.kernel_buffer); - return rv != VBERROR_SUCCESS; + return rv != VB2_SUCCESS; } |