@@ -2527,7 +2527,6 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
2527
2527
if (lightNode2->node() != node)
2528
2528
{
2529
2529
lightNode2->setNode(const_cast<deCONZ::Node*>(node));
2530
- DBG_Printf(DBG_INFO, "LightNode %s set node %s\n", qPrintable(lightNode2->id()), qPrintable(node->address().toStringExt()));
2531
2530
}
2532
2531
2533
2532
lightNode2->setManufacturerCode(node->nodeDescriptor().manufacturerCode());
@@ -2539,7 +2538,6 @@ void DeRestPluginPrivate::addLightNode(const deCONZ::Node *node)
2539
2538
{
2540
2539
// the node existed before
2541
2540
// refresh all with new values
2542
- DBG_Printf(DBG_INFO, "LightNode %u: %s updated\n", lightNode2->id().toUInt(), qPrintable(lightNode2->name()));
2543
2541
reachable->setValue(avail);
2544
2542
Event e(RLights, RStateReachable, lightNode2->id(), reachable);
2545
2543
enqueueEvent(e);
@@ -3354,7 +3352,6 @@ void DeRestPluginPrivate::nodeZombieStateChanged(const deCONZ::Node *node)
3354
3352
if (i->node() != node)
3355
3353
{
3356
3354
i->setNode(const_cast<deCONZ::Node*>(node));
3357
- DBG_Printf(DBG_INFO, "LightNode %s set node %s\n", qPrintable(i->id()), qPrintable(node->address().toStringExt()));
3358
3355
}
3359
3356
3360
3357
ResourceItem *item = i->item(RStateReachable);
@@ -3396,7 +3393,6 @@ void DeRestPluginPrivate::nodeZombieStateChanged(const deCONZ::Node *node)
3396
3393
if (i->node() != node)
3397
3394
{
3398
3395
i->setNode(const_cast<deCONZ::Node*>(node));
3399
- DBG_Printf(DBG_INFO, "Sensor %s set node %s\n", qPrintable(i->id()), qPrintable(node->address().toStringExt()));
3400
3396
}
3401
3397
3402
3398
checkSensorNodeReachable(&(*i));
@@ -3438,7 +3434,6 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
3438
3434
if (lightNode->node() != event.node())
3439
3435
{
3440
3436
lightNode->setNode(const_cast<deCONZ::Node*>(event.node()));
3441
- DBG_Printf(DBG_INFO, "LightNode %s set node %s\n", qPrintable(lightNode->id()), qPrintable(event.node()->address().toStringExt()));
3442
3437
}
3443
3438
3444
3439
if (lightNode->toBool(RStateReachable))
@@ -5568,7 +5563,6 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
5568
5563
if (i->node() != node)
5569
5564
{
5570
5565
i->setNode(const_cast<deCONZ::Node*>(node));
5571
- DBG_Printf(DBG_INFO, "SensorNode %s set node %s\n", qPrintable(i->id()), qPrintable(node->address().toStringExt()));
5572
5566
5573
5567
pushSensorInfoToCore(&*i);
5574
5568
@@ -5578,7 +5572,6 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const deCONZ::
5578
5572
auto *itemPending = i->item(RConfigPending);
5579
5573
if (itemPending)
5580
5574
{
5581
- DBG_Printf(DBG_INFO, "Init Poll Control for %s\n", qPrintable(node->address().toStringExt()));
5582
5575
pollControlInitialized = true;
5583
5576
itemPending->setValue(itemPending->toNumber() | R_PENDING_WRITE_POLL_CHECKIN_INTERVAL | R_PENDING_SET_LONG_POLL_INTERVAL);
5584
5577
}
@@ -8437,7 +8430,6 @@ void DeRestPluginPrivate::updateSensorNode(const deCONZ::NodeEvent &event)
8437
8430
if (i->node() != event.node())
8438
8431
{
8439
8432
i->setNode(const_cast<deCONZ::Node*>(event.node()));
8440
- DBG_Printf(DBG_INFO, "Sensor %s set node %s\n", qPrintable(i->id()), qPrintable(event.node()->address().toStringExt()));
8441
8433
}
8442
8434
8443
8435
if (event.event() == deCONZ::NodeEvent::UpdatedClusterDataZclReport ||
@@ -12064,14 +12056,6 @@ void DeRestPluginPrivate::processTasks()
12064
12056
12065
12057
if (!ok) // destination already busy
12066
12058
{
12067
- if (i->req.dstAddressMode() == deCONZ::ApsExtAddress)
12068
- {
12069
- DBG_Printf(DBG_INFO_L2, "delay sending request %u ep: 0x%02X cluster 0x%04X to %s onAir %d\n", i->req.id(), i->req.dstEndpoint(), i->req.clusterId(), qPrintable(i->req.dstAddress().toStringExt()), onAir);
12070
- }
12071
- else if (i->req.dstAddressMode() == deCONZ::ApsGroupAddress)
12072
- {
12073
- DBG_Printf(DBG_INFO, "delay sending request %u - type: %d to group 0x%04X\n", i->req.id(), i->taskType, i->req.dstAddress().group());
12074
- }
12075
12059
}
12076
12060
else
12077
12061
{
@@ -12247,7 +12231,6 @@ void DeRestPluginPrivate::nodeEvent(const deCONZ::NodeEvent &event)
12247
12231
12248
12232
case deCONZ::NodeEvent::NodeZombieChanged:
12249
12233
{
12250
- DBG_Printf(DBG_INFO, "Node zombie state changed %s\n", qPrintable(event.node()->address().toStringExt()));
12251
12234
nodeZombieStateChanged(event.node());
12252
12235
}
12253
12236
break;
@@ -12328,8 +12311,6 @@ void DeRestPluginPrivate::nodeEvent(const deCONZ::NodeEvent &event)
12328
12311
}
12329
12312
}
12330
12313
12331
- DBG_Printf(DBG_INFO_L2, "Node data %s profileId: 0x%04X, clusterId: 0x%04X\n", qPrintable(event.node()->address().toStringExt()), event.profileId(), event.clusterId());
12332
-
12333
12314
// filter for supported sensor clusters
12334
12315
switch (event.clusterId())
12335
12316
{
@@ -12598,8 +12579,6 @@ void DeRestPluginPrivate::handleGroupClusterIndication(const deCONZ::ApsDataIndi
12598
12579
lightNode->setGroupCapacity(capacity);
12599
12580
lightNode->setGroupCount(count);
12600
12581
12601
- // DBG_Printf(DBG_INFO, "verified group capacity: %u and group count: %u of LightNode %s\n", capacity, count, qPrintable(lightNode->address().toStringExt()));
12602
-
12603
12582
QVector<quint16> responseGroups;
12604
12583
for (uint i = 0; i < count; i++)
12605
12584
{
@@ -12610,7 +12589,7 @@ void DeRestPluginPrivate::handleGroupClusterIndication(const deCONZ::ApsDataIndi
12610
12589
12611
12590
responseGroups.push_back(groupId);
12612
12591
12613
- DBG_Printf(DBG_INFO, "%s found group 0x%04X\n", qPrintable( lightNode->address().toStringExt() ), groupId);
12592
+ DBG_Printf(DBG_INFO, FMT_MAC " found group 0x%04X\n", (unsigned long long) lightNode->address().ext( ), groupId);
12614
12593
12615
12594
foundGroup(groupId);
12616
12595
foundGroupMembership(lightNode, groupId);
@@ -12629,7 +12608,7 @@ void DeRestPluginPrivate::handleGroupClusterIndication(const deCONZ::ApsDataIndi
12629
12608
&& !responseGroups.contains(i->id)
12630
12609
&& i->state == GroupInfo::StateInGroup)
12631
12610
{
12632
- DBG_Printf(DBG_INFO, " restore group 0x%04X for lightNode %s \n", i->id, qPrintable( lightNode->address().toStringExt()) );
12611
+ DBG_Printf(DBG_INFO, FMT_MAC " restore group 0x%04X for lightNode\n", (unsigned long long) lightNode->address().ext(), i->id );
12633
12612
i->actions &= ~GroupInfo::ActionRemoveFromGroup; // sanity
12634
12613
i->actions |= GroupInfo::ActionAddToGroup;
12635
12614
i->state = GroupInfo::StateInGroup;
@@ -12888,7 +12867,7 @@ void DeRestPluginPrivate::handleSceneClusterIndication(const deCONZ::ApsDataIndi
12888
12867
12889
12868
if (i != v.end())
12890
12869
{
12891
- DBG_Printf(DBG_INFO, "Added /stored scene %u in node %s Response. Status : 0x%02X\n", sceneId, qPrintable( lightNode->address().toStringExt()) , status);
12870
+ DBG_Printf(DBG_INFO, FMT_MAC " added /stored scene %u response status : 0x%02X\n", (unsigned long long) lightNode->address().ext(), sceneId , status);
12892
12871
groupInfo->addScenes.erase(i);
12893
12872
12894
12873
if (status == 0x00)
@@ -13148,8 +13127,7 @@ void DeRestPluginPrivate::handleSceneClusterIndication(const deCONZ::ApsDataIndi
13148
13127
13149
13128
if (i != v.end())
13150
13129
{
13151
- DBG_Printf(DBG_INFO, "Modified scene %u in node %s status 0x%02X\n", sceneId, qPrintable(lightNode->address().toStringExt()), status);
13152
-
13130
+ DBG_Printf(DBG_INFO, FMT_MAC " modified scene %u status 0x%02X\n", (unsigned long long)lightNode->address().ext(), sceneId, status);
13153
13131
if (status == deCONZ::ZclSuccessStatus)
13154
13132
{
13155
13133
groupInfo->modifyScenesRetries = 0;
@@ -13874,7 +13852,7 @@ void DeRestPluginPrivate::handleCommissioningClusterIndication(const deCONZ::Aps
13874
13852
stream >> startIndex;
13875
13853
stream >> count;
13876
13854
13877
- DBG_Printf(DBG_INFO, "Get group identifiers response of sensor %s. Count : %u\n", qPrintable( sensorNode->address().toStringExt()), count);
13855
+ DBG_Printf(DBG_INFO, FMT_MAC " get ZLL group identifiers response: count : %u\n", (unsigned long long) sensorNode->address().ext(), unsigned( count) );
13878
13856
13879
13857
while (!stream.atEnd() && epIter < count)
13880
13858
{
0 commit comments