From 2472134af0ead2472d441a71343348a03fc96808 Mon Sep 17 00:00:00 2001 From: Trung N Tran Date: Fri, 11 Aug 2017 10:29:36 -0700 Subject: mpm: minor change trace log of sysfs_gpio --- mpm/python/usrp_mpm/sysfs_gpio.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mpm/python/usrp_mpm/sysfs_gpio.py') diff --git a/mpm/python/usrp_mpm/sysfs_gpio.py b/mpm/python/usrp_mpm/sysfs_gpio.py index bbd428c0d..a777a7e49 100644 --- a/mpm/python/usrp_mpm/sysfs_gpio.py +++ b/mpm/python/usrp_mpm/sysfs_gpio.py @@ -181,7 +181,8 @@ class SysFSGPIO(object): gpio_num = self._base_gpio + gpio_idx gpio_path = os.path.join(GPIO_SYSFS_BASE_DIR, 'gpio{}'.format(gpio_num)) value_path = os.path.join(gpio_path, GPIO_SYSFS_VALUEFILE) - self.log.trace("Writing value from `{}'...".format(value_path)) assert os.path.exists(value_path) - return int(open(value_path, 'r').read().strip()) + read_value = int(open(value_path, 'r').read().strip()) + self.log.trace("Reading value {} from `{}'...".format(read_value, value_path)) + return read_value -- cgit v1.2.3