From e3523cece4b06de6a357ed1176b8c07e1be795cd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 2 Jan 2019 12:39:00 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_p2p_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 *")