diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-15 11:14:04 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:05 -0800 |
commit | e9a7db19ab1c2ad99c47092ffe186e46eccc0895 (patch) | |
tree | 5b4b1d13e9b76e9afdb59f4950ae63e2447aee35 /mpm/python/usrp_mpm/chips | |
parent | 08d8a34a2ae9b972a5465f910c50fec50d8cb0f8 (diff) | |
download | uhd-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.py | 5 |
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') |