diff options
author | Andrew Ballance <[email protected]> | 2024-03-03 19:25:07 -0600 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-03-07 16:14:19 -0800 |
commit | ded79af42f114bb89f8e90c8e7337f5b7bb5f015 (patch) | |
tree | ce5ed3bbd5f5477df58ed3346cab8e085dbb711f | |
parent | f1d088178568a1b6e8bacb3d48e1c51a3b522af8 (diff) |
scripts/gdb/symbols: fix invalid escape sequence warning
With python 3.12, '\.' results in this warning
SyntaxWarning: invalid escape sequence '\.'
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Andrew Ballance <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Kieran Bingham <[email protected]>
Cc: Koudai Iwahori <[email protected]>
Cc: Kuan-Ying Lee <[email protected]>
Cc: Luis Chamberlain <[email protected]>
Cc: Pankaj Raghav <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r-- | scripts/gdb/linux/symbols.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gdb/linux/symbols.py b/scripts/gdb/linux/symbols.py index c8047f4441e6..e8316beb17a7 100644 --- a/scripts/gdb/linux/symbols.py +++ b/scripts/gdb/linux/symbols.py @@ -82,7 +82,7 @@ lx-symbols command.""" self.module_files_updated = True def _get_module_file(self, module_name): - module_pattern = ".*/{0}\.ko(?:.debug)?$".format( + module_pattern = r".*/{0}\.ko(?:.debug)?$".format( module_name.replace("_", r"[_\-]")) for name in self.module_files: if re.match(module_pattern, name) and os.path.exists(name): |