aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2017-08-11 10:29:36 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:04:01 -0800
commit2472134af0ead2472d441a71343348a03fc96808 (patch)
tree63c61b2946953332c322cc1857524f195d70e4c9
parente25e52d9a8d3b789e2074a3924f8370e18fbd819 (diff)
downloaduhd-2472134af0ead2472d441a71343348a03fc96808.tar.gz
uhd-2472134af0ead2472d441a71343348a03fc96808.tar.bz2
uhd-2472134af0ead2472d441a71343348a03fc96808.zip
mpm: minor change trace log of sysfs_gpio
-rw-r--r--mpm/python/usrp_mpm/sysfs_gpio.py5
1 files changed, 3 insertions, 2 deletions
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