diff options
author | Joel Kitching <kitching@google.com> | 2019-10-04 17:46:29 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-23 16:28:14 +0000 |
commit | 3c477458fa7f1506e722ede38636eaced8810687 (patch) | |
tree | 6af8c80467619faa021405a72ab8c6e5eb12b55b /tests/tlcl_tests.c | |
parent | ffa02e80c8cec862106607ffd0333258bb1ed62e (diff) | |
download | vboot-3c477458fa7f1506e722ede38636eaced8810687.tar.gz |
vboot: format hex numbers with %#x instead of 0x%x
Also standardize on using hex for printing ASCII key values
across vboot_ui.c and vboot_ui_menu.c.
BUG=b:124141368
TEST=make clean && make runtests
BRANCH=none
Change-Id: Ib10288d95e29c248ebe807d99108aea75775b155
Signed-off-by: Joel Kitching <kitching@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1840191
Reviewed-by: Joel Kitching <kitching@chromium.org>
Tested-by: Joel Kitching <kitching@chromium.org>
Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'tests/tlcl_tests.c')
-rw-r--r-- | tests/tlcl_tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tlcl_tests.c b/tests/tlcl_tests.c index 7e8d2311..c9521f97 100644 --- a/tests/tlcl_tests.c +++ b/tests/tlcl_tests.c @@ -88,7 +88,7 @@ uint32_t VbExTpmSendReceive(const uint8_t *request, uint32_t request_length, FromTpmUint32(request + 6, &c->req_cmd); // KLUDGE - remove - printf("TSR [%d] 0x%x\n", ncalls-1, c->req_cmd); + printf("TSR [%d] %#x\n", ncalls-1, c->req_cmd); memset(response, 0, *response_length); if (c->rsp_size) |