aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm/chips
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-11-15 11:14:04 -0800
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:05:05 -0800
commite9a7db19ab1c2ad99c47092ffe186e46eccc0895 (patch)
tree5b4b1d13e9b76e9afdb59f4950ae63e2447aee35 /mpm/python/usrp_mpm/chips
parent08d8a34a2ae9b972a5465f910c50fec50d8cb0f8 (diff)
downloaduhd-e9a7db19ab1c2ad99c47092ffe186e46eccc0895.tar.gz
uhd-e9a7db19ab1c2ad99c47092ffe186e46eccc0895.tar.bz2
uhd-e9a7db19ab1c2ad99c47092ffe186e46eccc0895.zip
mpm: Fix minor logging issues with LMK04828 code
Log prefixes weren't properly being set.
Diffstat (limited to 'mpm/python/usrp_mpm/chips')
-rw-r--r--mpm/python/usrp_mpm/chips/lmk04828.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpm/python/usrp_mpm/chips/lmk04828.py b/mpm/python/usrp_mpm/chips/lmk04828.py
index 4d2839bf9..121d855ca 100644
--- a/mpm/python/usrp_mpm/chips/lmk04828.py
+++ b/mpm/python/usrp_mpm/chips/lmk04828.py
@@ -27,9 +27,8 @@ class LMK04828(object):
"""
LMK_CHIP_ID = 6
- def __init__(self, regs_iface, postfix=None):
- postfix = postfix or ""
- self.log = get_logger("LMK04828-{}".format(postfix))
+ def __init__(self, regs_iface, parent_log=None):
+ self.log = parent_log.getChild("LMK04828") or get_logger("LMK04828")
self.regs_iface = regs_iface
assert hasattr(self.regs_iface, 'peek8')
assert hasattr(self.regs_iface, 'poke8')