diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-01-13 14:33:12 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-13 16:16:31 -0800 |
commit | bf556da81a292d5c13a582f8dd489fc38c8f9bfb (patch) | |
tree | 8937c0bf6dd0e2aa44540a922ffcfc71ed585b0b /core/btdiscovery.cpp | |
parent | 4c5997bcbe4bfa38bebb8abe5c6a42edcc7a1e99 (diff) | |
download | subsurface-bf556da81a292d5c13a582f8dd489fc38c8f9bfb.tar.gz |
core/bluetooth: make device discovery less noisy
This mainly combines reasonably redundant text to make the output easier
to read.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r-- | core/btdiscovery.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index a979bd2d9..e6f45b7b3 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -308,10 +308,11 @@ void BTDiscovery::btDeviceDiscoveredMain(const btPairedDevice &device, bool from else newDevice = device.name; - qDebug() << (fromPaired ? "Paired device" : "Discovered new device:") << newDevice << device.address; + QString msg; + msg = QString("%1 device: '%2' [%3]: ").arg(fromPaired ? "Paired" : "Discovered new").arg(newDevice).arg(device.address); if (newDC) { QString vendor = dc_descriptor_get_vendor(newDC); - qDebug() << "this could be a " + vendor + " " + newDevice; + qDebug() << msg << "this could be a " + vendor; btVP.btpdi = device; btVP.dcDescriptor = newDC; btVP.vendorIdx = vendorList.indexOf(vendor); @@ -326,7 +327,7 @@ void BTDiscovery::btDeviceDiscoveredMain(const btPairedDevice &device, bool from newDevice += " "; connectionListModel.addAddress(newDevice + device.address); } - qDebug() << "Not recognized as dive computer"; + qDebug() << msg << "not recognized as dive computer"; } QList<BTDiscovery::btVendorProduct> BTDiscovery::getBtDcs() |