scripts/gdb: add internal helper and convenience function for per-cpu lookup
[firefly-linux-kernel-4.4.55.git] / scripts / config
index 2283be2bb62c067d3d318431d1071328a7d649fb..026aeb4f32ee3fa056e57c84c1283e2d04181f15 100755 (executable)
@@ -82,7 +82,7 @@ txt_subst() {
        local infile="$3"
        local tmpfile="$infile.swp"
 
-       sed -e "s/$before/$after/" "$infile" >"$tmpfile"
+       sed -e "s:$before:$after:" "$infile" >"$tmpfile"
        # replace original file with the edited one
        mv "$tmpfile" "$infile"
 }
@@ -223,4 +223,3 @@ while [ "$1" != "" ] ; do
                ;;
        esac
 done
-