From 6843f00b44be649056b0c80da413f652adc6776b Mon Sep 17 00:00:00 2001 From: Spyros Seimenis Date: Fri, 22 Mar 2024 18:07:05 +0200 Subject: [PATCH] i/tpm2test/ekcert.go: fix typo in verb used as format string in Errorf --- internal/tpm2test/ekcert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tpm2test/ekcert.go b/internal/tpm2test/ekcert.go index 51cab265..660d3c98 100644 --- a/internal/tpm2test/ekcert.go +++ b/internal/tpm2test/ekcert.go @@ -103,7 +103,7 @@ func CreateTestEKCert(tpm *tpm2.TPMContext, caCert []byte, caKey crypto.PrivateK pkix.AttributeTypeAndValue{Type: tcg.OIDTcgAttributeTpmVersion, Value: "id:00010002"}}} tpmDeviceAttrData, err := asn1.Marshal(tpmDeviceAttrValues) if err != nil { - return nil, fmt.Errorf("cannot marshal SAN value: %2", err) + return nil, fmt.Errorf("cannot marshal SAN value: %w", err) } sanData, err := asn1.Marshal([]asn1.RawValue{ asn1.RawValue{Class: asn1.ClassContextSpecific, Tag: tcg.SANDirectoryNameTag, IsCompound: true, Bytes: tpmDeviceAttrData}})