diff options
| author | Nicolas Boichat <[email protected]> | 2019-07-12 03:52:27 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-07-12 18:05:41 +0000 |
| commit | 31013836a71e07751a6827f9d2ad41ef502ddaff (patch) | |
| tree | ad720224ae920b6347465f1611978409dc766fdc /scripts/decode_stacktrace.sh | |
| parent | include/linux/dmar.h: replace single-char identifiers in macros (diff) | |
| download | kernel-31013836a71e07751a6827f9d2ad41ef502ddaff.tar.gz kernel-31013836a71e07751a6827f9d2ad41ef502ddaff.zip | |
scripts/decode_stacktrace: match basepath using shell prefix operator, not regex
The basepath may contain special characters, which would confuse the regex
matcher. ${var#prefix} does the right thing.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 67a28de47faa8358 ("scripts/decode_stacktrace: only strip base path when a prefix of the path")
Signed-off-by: Nicolas Boichat <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/decode_stacktrace.sh')
| -rwxr-xr-x | scripts/decode_stacktrace.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/decode_stacktrace.sh b/scripts/decode_stacktrace.sh index a7a36209a193..6c2c05a75b54 100755 --- a/scripts/decode_stacktrace.sh +++ b/scripts/decode_stacktrace.sh @@ -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'/' '} |
