@@ -107,7 +107,7 @@ func (mounter *csiProxyMounter) SMBMount(source, target, fsType string, mountOpt
107107
108108 mappingPath , err := getRootMappingPath (source )
109109 if err != nil {
110- return fmt .Errorf ("getRootMappingPath(%s) failed with %v" , source , err )
110+ return fmt .Errorf ("getRootMappingPath(%s) failed with error: %v" , source , err )
111111 }
112112 unlock := lock (mappingPath )
113113 defer unlock ()
@@ -126,7 +126,7 @@ func (mounter *csiProxyMounter) SMBMount(source, target, fsType string, mountOpt
126126 klog .V (2 ).Infof ("mount %s on %s successfully" , source , normalizedTarget )
127127
128128 if err = incementRemotePathReferencesCount (mappingPath , source ); err != nil {
129- klog .Warningf ("incementMappingPathCount(%s, %s) failed with %v" , mappingPath , source , err )
129+ klog .Warningf ("incementMappingPathCount(%s, %s) failed with error: %v" , mappingPath , source , err )
130130 }
131131
132132 return nil
@@ -143,15 +143,15 @@ func (mounter *csiProxyMounter) SMBUnmount(target string) error {
143143 }
144144 mappingPath , err := getRootMappingPath (remotePath )
145145 if err != nil {
146- klog .Warningf ("getRootMappingPath(%s) failed with %v" , remotePath , err )
146+ klog .Warningf ("getRootMappingPath(%s) failed with error: %v" , remotePath , err )
147147 } else {
148148 klog .V (4 ).Infof ("SMBUnmount: remote path: %s, mapping path: %s" , remotePath , mappingPath )
149149
150150 unlock := lock (mappingPath )
151151 defer unlock ()
152152
153153 if err := decrementRemotePathReferencesCount (mappingPath , remotePath ); err != nil {
154- klog .Warningf ("decrementMappingPathCount(%s, %d) failed with %v" , mappingPath , remotePath , err )
154+ klog .Warningf ("decrementMappingPathCount(%s, %d) failed with error: %v" , mappingPath , remotePath , err )
155155 } else {
156156 count := getRemotePathReferencesCount (mappingPath )
157157 if count == 0 {
0 commit comments