[PATCH openEuler-5.10 16/29] selftests:kvm: fix get_warnings_count() ignoring fscanf() return warn