Skip to content

Commit faf13ea

Browse files
committed
Format byte array error output from google_nvme_id as string, rather than byte array
1 parent 5362aab commit faf13ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deviceutils/device-utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func getNvmeSerial(devicePath string) (string, error) {
170170
nvmeIdPath,
171171
fmt.Sprintf("-d%s", devicePath)).CombinedOutput()
172172
if err != nil {
173-
return "", fmt.Errorf("google_nvme_id failed for device %q with output %v: %w", devicePath, out, err)
173+
return "", fmt.Errorf("google_nvme_id failed for device %q with output %s: %w", devicePath, out, err)
174174
}
175175

176176
return parseNvmeSerial(string(out))

0 commit comments

Comments
 (0)