Skip to content

Commit 4e7de44

Browse files
author
Hou Junjie
committed
fix format placeholders
1 parent eafcc44 commit 4e7de44

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

src/csi/driver/controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,8 @@ func (d *Driver) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequ
319319
func (d *Driver) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error) {
320320
return nil, status.Error(codes.Unimplemented, "")
321321
}
322+
323+
func (d *Driver) ControllerGetVolume(ctx context.Context, req *csi.ControllerGetVolumeRequest) (*csi.ControllerGetVolumeResponse, error) {
324+
// todo
325+
return nil, nil
326+
}

src/storage/fusionstorage/smartx/smartx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (p *QoS) AddQoS(volName string, params map[string]int) (string, error) {
7979

8080
err := p.RemoveQoS(volName)
8181
if err != nil {
82-
log.Errorf("Revert Create qos %s error: %v", params, err)
82+
log.Errorf("Revert Create qos %v error: %v", params, err)
8383
return "", err
8484
}
8585

src/storage/fusionstorage/volume/san.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func (p *SAN) preExpandCheckCapacity(params, taskResult map[string]interface{})
292292
expandSize := params["expandSize"].(int64)
293293
pool, err := p.cli.GetPoolById(localParentId)
294294
if err != nil || pool == nil {
295-
log.Errorf("Get storage pool %s info error: %v", localParentId, err)
295+
log.Errorf("Get storage pool %v info error: %v", localParentId, err)
296296
return nil, err
297297
}
298298
totalCapacity := int64(pool["totalCapacity"].(float64))

src/tools/passwdEncrypt/passwdEncrypt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func main() {
1717
fmt.Print("Enter password: ")
1818
input, err := terminal.ReadPassword(0)
1919
if err != nil {
20-
fmt.Println("Input password error: %v", err)
20+
fmt.Printf("Input password error: %v", err)
2121
os.Exit(1)
2222
}
2323

@@ -27,7 +27,7 @@ func main() {
2727

2828
encrypted, err := pwd.Encrypt(plainText)
2929
if err != nil {
30-
fmt.Println("Encrypt password error: %v", err)
30+
fmt.Printf("Encrypt password error: %v", err)
3131
os.Exit(1)
3232
}
3333

src/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func CopyMap(srcMap interface{}) map[string]interface{} {
220220
func StrToBool(str string) bool {
221221
b, err := strconv.ParseBool(str)
222222
if err != nil {
223-
log.Warningf("Parse bool string %s error, return false")
223+
log.Warningf("Parse bool string %s error, return false", err)
224224
return false
225225
}
226226

0 commit comments

Comments
 (0)