Skip to content

Commit b173c18

Browse files
committed
pkg/uefi/meregion: remove dump from error when FPT signature is not found
Signed-off-by: Daniel Maslowski <info@orangecms.org>
1 parent 820d122 commit b173c18

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/uefi/meregion.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ package uefi
77
import (
88
"bytes"
99
"encoding/binary"
10-
"encoding/hex"
1110
"fmt"
1211

1312
"github.com/linuxboot/fiano/pkg/log"
@@ -109,7 +108,7 @@ func FindMEDescriptor(buf []byte) (int, error) {
109108
if fptOffset >= 0 {
110109
return fptOffset + len(MEFPTSignature), nil
111110
}
112-
return -1, fmt.Errorf("ME Flash Partition Table signature %#02x not found: first 20 bytes are:\n%s", MEFPTSignature, hex.Dump(buf[:20]))
111+
return -1, fmt.Errorf("ME Flash Partition Table signature %#02x not found", MEFPTSignature)
113112
}
114113

115114
// Buf returns the buffer.

0 commit comments

Comments
 (0)