summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2020-08-05 00:03:53 +0000
committerCommit Bot <commit-bot@chromium.org>2020-08-06 02:04:28 +0000
commit17fed25d34ec92fa0c7c3bfc738e4ca63c20bba4 (patch)
treed6de2a4c61195799eeb795d8bbf3679ed5850750 /test
parent822d58c9fd4867a37ecdddcf4b40789183584132 (diff)
downloadchrome-ec-17fed25d34ec92fa0c7c3bfc738e4ca63c20bba4.tar.gz
ectool: Fix "rwsig dump key_id" hex output
The ectool command rwsig dump key_id's output was missing zeros in the hex string output. This is because we print each byte independently using the naked %x formatter, which will print the minimum hex characters necessary to represent the independent number provided. We need to force exactly 2 hex characters for each independent byte printed. BRANCH=none BUG=b:162588911 TEST=# Nocturne make BOARD=nocturne_fp build/nocturne_fp/util/ectool # Copy build/nocturne_fp/util/ectool to fat32 flash drive mkdir /tmp/rem mount /dev/sda1 /tmp/rem ectool --name=cros_fp rwsig dump key_id | tr -d '\n' | wc -c # Identify there are less than 40 chars (39 in my case) /tmp/rem/ectool --name=cros_fp rwsig dump key_id | tr -d '\n' | wc -c # Identify there are exactly 40 chars # Rerun both commands without the byte counting to sanity # check the output Change-Id: I0a43833adb647aa034df87678c9657466cc8aef5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2336865 Commit-Queue: Craig Hesling <hesling@chromium.org> Commit-Queue: Tom Hughes <tomhughes@chromium.org> Tested-by: Craig Hesling <hesling@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Auto-Submit: Craig Hesling <hesling@chromium.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions