Skip to content

Commit

Permalink
fix: non-constant format string in call to ...
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit committed Sep 7, 2024
1 parent 1edfad7 commit 44f6cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sparse/sfold.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func coalesce(parentFileIo, childFileIo FileIoProcessor, fileSize int64, ops Fil

defer func() {
if err != nil {
log.Errorf(err.Error())
log.Errorf("%v", err)
updateProgress(progress, atomic.LoadUint32(progress), true, err, progressMutex, ops)
} else {
updateProgress(progress, progressComplete, true, nil, progressMutex, ops)
Expand Down
2 changes: 1 addition & 1 deletion sparse/sprune.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func prune(parentFileIo, childFileIo FileIoProcessor, fileSize int64, ops FileHa

defer func() {
if err != nil {
log.Errorf(err.Error())
log.Errorf("%v", err)
updateProgress(progress, atomic.LoadUint32(progress), true, err, progressMutex, ops)
} else {
updateProgress(progress, progressComplete, true, nil, progressMutex, ops)
Expand Down

0 comments on commit 44f6cda

Please sign in to comment.