diff --git a/pkg/cloud/devicemanager/manager.go b/pkg/cloud/devicemanager/manager.go index 8214335e..b88c442d 100644 --- a/pkg/cloud/devicemanager/manager.go +++ b/pkg/cloud/devicemanager/manager.go @@ -220,7 +220,7 @@ func (d *deviceManager) getDeviceNamesInUse(instance osc.Vm) map[string]string { name = strings.TrimPrefix(name, "/dev/xvd") if len(name) < 1 || len(name) > 2 { - klog.Warningf("Unexpected BSU DeviceName: %q", blockDevice.DeviceName) + klog.Warningf("Unexpected BSU DeviceName: %q", *blockDevice.DeviceName) } inUse[name] = blockDevice.Bsu.GetVolumeId() } diff --git a/pkg/driver/luks_util.go b/pkg/driver/luks_util.go index 2919da65..188790c6 100644 --- a/pkg/driver/luks_util.go +++ b/pkg/driver/luks_util.go @@ -104,7 +104,7 @@ func LuksClose(mounter Mounter, encryptedDeviceName string) error { } if err = mounter.Command("cryptsetup", "-v", "luksClose", encryptedDeviceName).Run(); err != nil { - klog.V(4).Info("error while closing luks device %v", encryptedDeviceName) + klog.V(4).Info("error while closing luks device", encryptedDeviceName) return err }