OSDN Git Service

Fix logging output
authorWei Wang <wvw@google.com>
Mon, 5 Nov 2018 18:18:59 +0000 (10:18 -0800)
committerWei Wang <wvw@google.com>
Mon, 5 Nov 2018 18:19:40 +0000 (10:19 -0800)
Test: Build
Change-Id: Idcb86b511412137e4ef14cae9c17aa36fd2dbbc8

libperfmgr/HintManager.cc

index ca40434..fb9a8b5 100644 (file)
@@ -308,7 +308,7 @@ std::map<std::string, std::vector<NodeAction>> HintManager::ParseActions(
         if (nodes_index.find(node_name) == nodes_index.end()) {
             LOG(ERROR) << "Failed to find "
                        << "Action[" << i
-                       << "]'s Node from Nodes section: " << node_name;
+                       << "]'s Node from Nodes section: [" << node_name << "]";
             actions_parsed.clear();
             return actions_parsed;
         }
@@ -321,7 +321,7 @@ std::map<std::string, std::vector<NodeAction>> HintManager::ParseActions(
         if (!nodes[node_index]->GetValueIndex(value_name, &value_index)) {
             LOG(ERROR) << "Failed to read Action[" << i << "]'s Value";
             LOG(ERROR) << "Action[" << i << "]'s Value " << value_name
-                       << " is not defined in Node[" << node_name;
+                       << " is not defined in Node[" << node_name << "]";
             actions_parsed.clear();
             return actions_parsed;
         }