Skip to content

Commit 44f6cda

Browse files
committed
fix: non-constant format string in call to ...
Signed-off-by: Derek Su <[email protected]>
1 parent 1edfad7 commit 44f6cda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sparse/sfold.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func coalesce(parentFileIo, childFileIo FileIoProcessor, fileSize int64, ops Fil
6464

6565
defer func() {
6666
if err != nil {
67-
log.Errorf(err.Error())
67+
log.Errorf("%v", err)
6868
updateProgress(progress, atomic.LoadUint32(progress), true, err, progressMutex, ops)
6969
} else {
7070
updateProgress(progress, progressComplete, true, nil, progressMutex, ops)

sparse/sprune.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func prune(parentFileIo, childFileIo FileIoProcessor, fileSize int64, ops FileHa
6060

6161
defer func() {
6262
if err != nil {
63-
log.Errorf(err.Error())
63+
log.Errorf("%v", err)
6464
updateProgress(progress, atomic.LoadUint32(progress), true, err, progressMutex, ops)
6565
} else {
6666
updateProgress(progress, progressComplete, true, nil, progressMutex, ops)

0 commit comments

Comments
 (0)