Skip to content

Commit

Permalink
add trace top of firmware install
Browse files Browse the repository at this point in the history
  • Loading branch information
ofaurax committed Nov 10, 2023
1 parent 1c1f49d commit 2d3f5c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/asrockrack/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ const (
// FirmwareInstall uploads and initiates firmware update for the component
func (a *ASRockRack) FirmwareInstall(ctx context.Context, component, applyAt string, forceInstall bool, reader io.Reader) (jobID string, err error) {
var size int64

mybytes, err := io.ReadAll(reader)

Check failure on line 29 in providers/asrockrack/firmware.go

View workflow job for this annotation

GitHub Actions / lint

SA4006: this value of `err` is never used (staticcheck)
fmt.Printf("ReadAll reader top firmware install len:%d\n", len(mybytes))

if file, ok := reader.(*os.File); ok {
finfo, err := file.Stat()
if err != nil {
Expand Down

0 comments on commit 2d3f5c6

Please sign in to comment.