[PATCH 2/2] selftests: kvm: Reduce verbosity of "Random seed" messages

Dapeng Mi
2024-06-19T02:20:26Z

Huge number of "Random seed:" messages are printed when running
pmu_counters_test. It leads to the regular test output is totally
flooded by these over-verbose messages.

Downgrade "Random seed" message printing level to debug and prevent it
to be printed in normal case.

Reported-by: Yi Lai <yi1.lai@intel.com>
Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
---
tools/testing/selftests/kvm/lib/kvm_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/kvm/lib/kvm_util.c b/tools/testing/selftests/kvm/lib/kvm_util.c
index ad00e4761886..8568c7d619c3 100644
--- a/tools/testing/selftests/kvm/lib/kvm_util.c
+++ b/tools/testing/selftests/kvm/lib/kvm_util.c
@@ -434,7 +434,7 @@ struct kvm_vm *__vm_create(struct vm_shape shape, uint32_t nr_runnable_vcpus,
slot0 = memslot2region(vm, 0);
ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size);

- pr_info("Random seed: 0x%x\n", guest_random_seed);
+ pr_debug("Random seed: 0x%x\n", guest_random_seed);
guest_rng = new_guest_random_state(guest_random_seed);
sync_global_to_guest(vm, guest_rng);

--
2.34.1