Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read: print byte as 2-digit hex #2

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

syncom
Copy link
Member

@syncom syncom commented Feb 26, 2025

This is a minor formatting improvement.

Before:

$ tmtool-aarch64 --key-slot 0xe0e8 read
~~ TrustM initinialised
~~ Key at slot 0xe0e8
[e2, b, 5, c4, f7, 97, 40, 1, f7, 64, 8f, ff, 38, 41, 5, a1, 85, 89, af, c3, ca, 56, d5, 96, 57, 75, 4c, 42, 14, 9, 8f, 7f, 80, 84, bb, 6c, d0, 92, 52, 37, 4e, 81, b1, 22, 6a, 26, cd, 23, 85, 55, 88, 87, 58, 9b, 79, f9, 11, 8c, ec, 6f, 4, cb, bd, 63]

After:

$ tmtool-aarch64 --key-slot 0xe0e8 read
~~ TrustM initinialised
~~ Key at slot 0xe0e8
[e2, 0b, 05, c4, f7, 97, 40, 01, f7, 64, 8f, ff, 38, 41, 05, a1, 85, 89, af, c3, ca, 56, d5, 96, 57, 75, 4c, 42, 14, 09, 8f, 7f, 80, 84, bb, 6c, d0, 92, 52, 37, 4e, 81, b1, 22, 6a, 26, cd, 23, 85, 55, 88, 87, 58, 9b, 79, f9, 11, 8c, ec, 6f, 04, cb, bd, 63]

This is a minor formatting improvement.

Before:

```bash
$ tmtool-aarch64 --key-slot 0xe0e8 read
~~ TrustM initinialised
~~ Key at slot 0xe0e8
[e2, b, 5, c4, f7, 97, 40, 1, f7, 64, 8f, ff, 38, 41, 5, a1, 85, 89, af, c3, ca, 56, d5, 96, 57, 75, 4c, 42, 14, 9, 8f, 7f, 80, 84, bb, 6c, d0, 92, 52, 37, 4e, 81, b1, 22, 6a, 26, cd, 23, 85, 55, 88, 87, 58, 9b, 79, f9, 11, 8c, ec, 6f, 4, cb, bd, 63]
```

After:

```bash
$ tmtool-aarch64 --key-slot 0xe0e8 read
~~ TrustM initinialised
~~ Key at slot 0xe0e8
[e2, 0b, 05, c4, f7, 97, 40, 01, f7, 64, 8f, ff, 38, 41, 05, a1, 85, 89, af, c3, ca, 56, d5, 96, 57, 75, 4c, 42, 14, 09, 8f, 7f, 80, 84, bb, 6c, d0, 92, 52, 37, 4e, 81, b1, 22, 6a, 26, cd, 23, 85, 55, 88, 87, 58, 9b, 79, f9, 11, 8c, ec, 6f, 04, cb, bd, 63]
```
@syncom syncom requested a review from pldubouilh February 26, 2025 00:52
Add code owners.
@pldubouilh pldubouilh merged commit b40b635 into main Feb 26, 2025
1 check passed
@pldubouilh pldubouilh deleted the syncom/minor-formatting-improvement-read branch February 26, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants