From: Sang-Heon Jeon Date: Sat, 16 Aug 2025 01:40:33 +0000 (+0900) Subject: selftests/damon: change wrong json.dump usage to json.dumps X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3e48e04117fe4a1f65212b1e88303c00921d3dfc;p=users%2Fjedix%2Flinux-maple.git selftests/damon: change wrong json.dump usage to json.dumps 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 Reviewed-by: SeongJae Park Cc: Honggyu Kim Signed-off-by: Andrew Morton --- diff --git a/tools/testing/selftests/damon/sysfs_no_op_commit_break.py b/tools/testing/selftests/damon/sysfs_no_op_commit_break.py index f557587ebc81..2c65cffe6b54 100755 --- a/tools/testing/selftests/damon/sysfs_no_op_commit_break.py +++ b/tools/testing/selftests/damon/sysfs_no_op_commit_break.py @@ -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()