aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-04-20 17:35:40 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-04-21 15:19:59 -0500
commit595264854f9b747c2fdf088e01cbaab7abc4284f (patch)
treed91d66f8018168129254e35139384c0d261636ac /mpm
parent87b65cf7ab9754d5361cc87d98b013d3c2993405 (diff)
downloaduhd-595264854f9b747c2fdf088e01cbaab7abc4284f.tar.gz
uhd-595264854f9b747c2fdf088e01cbaab7abc4284f.tar.bz2
uhd-595264854f9b747c2fdf088e01cbaab7abc4284f.zip
mpm: mount: Demote already-mounted warning
The class Mount defines a mount point and device path. It currently warns if mount() is called twice, but that warning is at odds with the contract of that API. It even returns 'True' (== success) after printing the warning, and the outcome is the desired one. For that reason, we demote the warning to a debug statement.
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/sys_utils/mount.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/sys_utils/mount.py b/mpm/python/usrp_mpm/sys_utils/mount.py
index 2e32fa014..3212a37cb 100644
--- a/mpm/python/usrp_mpm/sys_utils/mount.py
+++ b/mpm/python/usrp_mpm/sys_utils/mount.py
@@ -68,7 +68,7 @@ class Mount():
Mounts the mount point
"""
if self.ismounted():
- self.log.warning("{} was already mounted".format(self.mountpoint))
+ self.log.debug("{} was already mounted".format(self.mountpoint))
return True
self.prepare_mountpoint()
self.log.debug("Mounting {}".format(self.mountpoint))