From f5e9ea9695b9d5351251add7a52a59fab205b616 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Wed, 21 Feb 2024 12:07:36 +0000 Subject: [PATCH] Fix formatting --- api/api.go | 2 +- cmd/witnessctl/witnessctl.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/api.go b/api/api.go index ef1a9ec..caad910 100644 --- a/api/api.go +++ b/api/api.go @@ -96,7 +96,7 @@ func (p *Status) Print() string { status.WriteString("----------------------------------------------------------- Trusted OS ----\n") status.WriteString(fmt.Sprintf("Serial number ..............: %s\n", p.Serial)) status.WriteString(fmt.Sprintf("Secure Boot ................: %v\n", p.HAB)) - status.WriteString(fmt.Sprintf("SRK hash ...................: %x\n", p.SRKHash)) + status.WriteString(fmt.Sprintf("SRK hash ...................: %s\n", p.SRKHash)) status.WriteString(fmt.Sprintf("Revision ...................: %s\n", p.Revision)) status.WriteString(fmt.Sprintf("Version ....................: %d (%s)\n", p.Version, time.Unix(int64(p.Version), 0))) status.WriteString(fmt.Sprintf("Runtime ....................: %s\n", p.Runtime)) diff --git a/cmd/witnessctl/witnessctl.go b/cmd/witnessctl/witnessctl.go index 9176adb..20b0444 100644 --- a/cmd/witnessctl/witnessctl.go +++ b/cmd/witnessctl/witnessctl.go @@ -142,9 +142,9 @@ func main() { env, ok := knownSRKHashes[s.SRKHash] if !ok { - log.Printf("WARNING: SRK hash '%x' is UNKNOWN!", s.SRKHash) + log.Printf("WARNING: SRK hash '%s' is UNKNOWN!", s.SRKHash) } else { - log.Printf("Will fuse to %s release environment (SRK Hash: %x)", env, s.SRKHash) + log.Printf("Will fuse to %s release environment (SRK Hash: %s)", env, s.SRKHash) } if confirm("Proceed?") {