From: Jouni Malinen Date: Wed, 2 Jan 2019 10:39:00 +0000 (+0200) Subject: tests: Fix p2p_ext_discovery_go to write to logger, not stdout X-Git-Tag: hostap_2_8~617 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3523cece4b06de6a357ed1176b8c07e1be795cd;p=thirdparty%2Fhostap.git tests: Fix p2p_ext_discovery_go to write to logger, not stdout The error case debug print should go to logger. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_ext.py b/tests/hwsim/test_p2p_ext.py index b38a94ba3..b9676370d 100644 --- a/tests/hwsim/test_p2p_ext.py +++ b/tests/hwsim/test_p2p_ext.py @@ -92,7 +92,7 @@ def test_p2p_ext_discovery_go(dev): raise Exception("Device discovery timed out") peer = dev[1].get_peer(addr0) if peer['vendor_elems'] != "dd050011223344dd06001122335566": - print peer['vendor_elems'] + logger.info("Peer vendor_elems: " + peer['vendor_elems']) raise Exception("Vendor elements not reported correctly") finally: dev[0].request("VENDOR_ELEM_REMOVE 2 *")