To print drgn status to stdout json.dumps should be used without json.dump. Change incorrect function call by typo. Fixes: 441f487d6ebf ("selftests/damon: test no-op commit broke DAMON status") Signed-off-by: Sang-Heon Jeon --- First I'm sorry that make you guys work twice. This is fix of my last patch [1]. I'll be more careful next time. [1] https://lore.kernel.org/damon/20250810124354.16456-1-ekffu200098@gmail.com/ --- tools/testing/selftests/damon/sysfs_no_op_commit_break.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.43.0