From b252b65ee094b5837774608e1c21a58ba8ab8eca Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 18 Aug 2021 15:09:31 -0700 Subject: [PATCH] auto-t: hwsim.py: handle Prefix/Enabled in __str__ --- autotests/util/hwsim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py index 3a83bcd8..52543062 100755 --- a/autotests/util/hwsim.py +++ b/autotests/util/hwsim.py @@ -171,7 +171,9 @@ class Rule(HwsimDBusAbstract): prefix + '\tFrequency:\t' + str(self.frequency) + '\n' + \ prefix + '\tApply rssi:\t' + str(self.signal) + '\n' + \ prefix + '\tApply drop:\t' + str(self.drop) + '\n' + \ - prefix + '\tPrefix:\t' + str([hex(b) for b in self.prefix]) + '\n' + prefix + '\tPrefix:\t' + str([hex(b) for b in self.prefix]) + '\n' + \ + prefix + '\tDelay:\t' + str(self.delay) + '\n' + \ + prefix + '\tEnabled:\t' + str(self.enabled) + '\n' class RuleSet(collections.Mapping): def __init__(self, hwsim, objects):