[PATCH] tests: ap_pmf: fix an exception string format

Johannes Berg johannes at sipsolutions.net
Wed May 6 02:11:22 PDT 2026


From: Johannes Berg <johannes.berg at intel.com>

Since I ran into this while playing with the SW crypto code,
fix the Exception string format to use f-strings, it's broken
as is since it's missing parentheses.

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 tests/hwsim/test_ap_pmf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_ap_pmf.py b/tests/hwsim/test_ap_pmf.py
index 22ace9f9fa41..06e93d4d256d 100644
--- a/tests/hwsim/test_ap_pmf.py
+++ b/tests/hwsim/test_ap_pmf.py
@@ -1406,7 +1406,7 @@ def check_mac80211_bigtk(dev, hapd):
     replays = int(sta_key['replays'])
     icverrors = int(sta_key['icverrors'])
     if replays > 0 or icverrors > 0:
-        raise Exception("STA reported errors: replays=%d icverrors=%d" % replays, icverrors)
+        raise Exception(f"STA reported errors: replays={replays} icverrors={icverrors}")
 
     rx_spec = int(sta_key['rx_spec'], base=16)
     if rx_spec < 3:
-- 
2.53.0




More information about the Hostap mailing list