summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2015-04-28 12:00:00 -0700
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:49:41 +0900
commita838d4ca08953f28e871d0797744f1a1a9767681 (patch)
tree9bef001a9cb73480b7a69ae9182265d1ecdee0ac /tools
parente3ec8aac46836508114291ef21f80fc80465c66a (diff)
gator: Version 5.21.1
Signed-off-by: Drew Richardson <drew.richardson@arm.com> [Ported from https://github.com/ARM-software/gator.git to kernel tree, out of tree files are removed] Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gator/daemon/COPYING (renamed from tools/gator/daemon/LICENSE)0
-rw-r--r--tools/gator/daemon/EventsXML.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/tools/gator/daemon/LICENSE b/tools/gator/daemon/COPYING
index d159169d1050..d159169d1050 100644
--- a/tools/gator/daemon/LICENSE
+++ b/tools/gator/daemon/COPYING
diff --git a/tools/gator/daemon/EventsXML.cpp b/tools/gator/daemon/EventsXML.cpp
index 3fe5ecd56000..cec08d5a6fff 100644
--- a/tools/gator/daemon/EventsXML.cpp
+++ b/tools/gator/daemon/EventsXML.cpp
@@ -138,7 +138,7 @@ mxml_node_t *EventsXML::getTree() {
}
// Handle categories
- for (mxml_node_t *node = mxmlFindElement(append, append, "category", NULL, NULL, MXML_DESCEND),
+ for (mxml_node_t *node = strcmp(mxmlGetElement(append), "category") == 0 ? append : mxmlFindElement(append, append, "category", NULL, NULL, MXML_DESCEND),
*next = mxmlFindElement(node, append, "category", NULL, NULL, MXML_DESCEND);
node != NULL;
node = next, next = mxmlFindElement(node, append, "category", NULL, NULL, MXML_DESCEND)) {