ext4: treat buffers with write errors as containing valid data
[sfrench/cifs-2.6.git] / scripts / decode_stacktrace.sh
index a7a36209a193384d2e4dd932fbf2308c83b78efa..13e5fbafdf2f71573a4d098e246e8545a7a0ea8c 100755 (executable)
@@ -28,7 +28,7 @@ parse_symbol() {
                local objfile=${modcache[$module]}
        else
                [[ $modpath == "" ]] && return
-               local objfile=$(find "$modpath" -name $module.ko -print -quit)
+               local objfile=$(find "$modpath" -name "${module//_/[-_]}.ko*" -print -quit)
                [[ $objfile == "" ]] && return
                modcache[$module]=$objfile
        fi
@@ -85,7 +85,7 @@ parse_symbol() {
        fi
 
        # Strip out the base of the path
-       code=${code//^$basepath/""}
+       code=${code#$basepath/}
 
        # In the case of inlines, move everything to same line
        code=${code//$'\n'/' '}