diff options
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') |