Fix warning message when adding alias
authorBryn M. Reeves <bmr@redhat.com>
Fri, 1 Feb 2013 18:33:54 +0000 (18:33 +0000)
committerBryn M. Reeves <bmr@redhat.com>
Fri, 1 Feb 2013 18:33:54 +0000 (18:33 +0000)
Use the correct local variable for the current device name when
warning the user that the new alias will replace an existing
mapping.

blkdevalias

index 0f699b1..c3e3f7b 100755 (executable)
@@ -172,7 +172,7 @@ ba_add_wwid_mapping() {
     fi
     if [ "${WWIDMAP[$_WWID]}" != "" ]; then
         _debug "$FUNCNAME: WWIDMAP[\$WWID]=${WWIDMAP[$_WWID]}"
-        _warn "$DEV already mapped to alias ${WWIDMAP[$_WWID]}; replacing it."
+        _warn "$_DEV already mapped to alias ${WWIDMAP[$_WWID]}; replacing it."
         ba_del_wwid_mapping "$_WWID"
     fi
     if [ "${NAMEMAP[$_ALIAS]}" != "" ]; then