Skip to content

Commit ded79af

Browse files
mrwigglewafflesakpm00
authored andcommitted
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/20240304012507.240380-1-andrewjballance@gmail.com Signed-off-by: Andrew Ballance <andrewjballance@gmail.com> Cc: Jan Kiszka <jan.kiszka@siemens.com> Cc: Kieran Bingham <kbingham@kernel.org> Cc: Koudai Iwahori <koudai@google.com> Cc: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: Pankaj Raghav <p.raghav@samsung.com> Cc: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent f1d0881 commit ded79af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/gdb/linux/symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _update_module_files(self):
8282
self.module_files_updated = True
8383

8484
def _get_module_file(self, module_name):
85-
module_pattern = ".*/{0}\.ko(?:.debug)?$".format(
85+
module_pattern = r".*/{0}\.ko(?:.debug)?$".format(
8686
module_name.replace("_", r"[_\-]"))
8787
for name in self.module_files:
8888
if re.match(module_pattern, name) and os.path.exists(name):

0 commit comments

Comments
 (0)