Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Feb 21, 2024
1 parent 11fd91a commit f5e9ea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions cmd/witnessctl/witnessctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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?") {
Expand Down

0 comments on commit f5e9ea9

Please sign in to comment.