]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
selftests/damon: change wrong json.dump usage to json.dumps
authorSang-Heon Jeon <ekffu200098@gmail.com>
Sat, 16 Aug 2025 01:40:33 +0000 (10:40 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:24:50 +0000 (17:24 -0700)
To print drgn status to stdout json.dumps should be used without
json.dump.  Change incorrect function call by typo.

Link: https://lkml.kernel.org/r/20250816014033.190451-1-ekffu200098@gmail.com
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Honggyu Kim <honggyu.kim@sk.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/sysfs_no_op_commit_break.py

index f557587ebc81747990a4d334fffedaa05330203c..2c65cffe6b54502c8d8c0aea9a1708f50a4ee6f1 100755 (executable)
@@ -62,8 +62,8 @@ def main():
         exit(1)
 
     if before_commit_status != after_commit_status:
-        print(f'before: {json.dump(before_commit_status, indent=2)}')
-        print(f'after: {json.dump(after_commit_status, indent=2)}')
+        print(f'before: {json.dumps(before_commit_status, indent=2)}')
+        print(f'after: {json.dumps(after_commit_status, indent=2)}')
         exit(1)
 
     kdamonds.stop()