]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tools: pylint gdb-sd_dump_hashmaps.py
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 9 Aug 2023 19:44:36 +0000 (21:44 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 10 Aug 2023 16:13:29 +0000 (18:13 +0200)
tools/gdb-sd_dump_hashmaps.py

index d2388b71715a9b4d2c9e9f1ed7d3d70c8a2f482a..57f825a09ccc171e3efd693d045c97618507ee01 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 # SPDX-License-Identifier: LGPL-2.1-or-later
+# pylint: disable=consider-using-f-string
 
 import gdb
 
@@ -9,7 +10,7 @@ class sd_dump_hashmaps(gdb.Command):
     def __init__(self):
         super().__init__("sd_dump_hashmaps", gdb.COMMAND_DATA, gdb.COMPLETE_NONE)
 
-    def invoke(self, arg, from_tty):
+    def invoke(self, arg, _from_tty):
         d = gdb.parse_and_eval("hashmap_debug_list")
         hashmap_type_info = gdb.parse_and_eval("hashmap_type_info")
         uchar_t = gdb.lookup_type("unsigned char")