Comparer: fix printing log 63/294563/2
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 21 Jun 2023 07:17:48 +0000 (16:17 +0900)
committerkim hosang <hosang12.kim@samsung.com>
Thu, 22 Jun 2023 05:47:50 +0000 (05:47 +0000)
Comparer logic is changed, so print current node instead of root node.

Change-Id: I9f83fb88067dbc5180415cf5606c7150ee9c71ec

libaurum/src/Comparer.cc

index fc0f99f..f2c120a 100644 (file)
@@ -142,7 +142,7 @@ void Comparer::findObjects(std::vector<std::shared_ptr<AccessibleNode>> &ret,
         }
 
         if (currentMatch && currentMatch->finalizeMatch()) {
-            LOGI("Found matched = %s with criteria %s", root->description().c_str(), currentMatch->debugPrint().c_str());
+            LOGI("Found matched = %s with criteria %s", curNode->description().c_str(), currentMatch->debugPrint().c_str());
             ret.push_back(curNode);
         }