Fixed order for NBLog::FormatEntry::begin()
Test: dumpsys media.log
Change-Id: I9579e8d41a5fd97b4c9c3b697bd8c13ee3b8c295
diff --git a/media/libnbaio/NBLog.cpp b/media/libnbaio/NBLog.cpp
index 5413007..263a201 100644
--- a/media/libnbaio/NBLog.cpp
+++ b/media/libnbaio/NBLog.cpp
@@ -72,6 +72,10 @@
// ---------------------------------------------------------------------------
+NBLog::EntryIterator NBLog::FormatEntry::begin() const {
+ return EntryIterator(mEntry);
+}
+
const char *NBLog::FormatEntry::formatString() const {
return (const char*) mEntry + offsetof(entry, data);
}
@@ -165,10 +169,6 @@
memcpy((void*) dst, ptr + offsetof(entry, data), ptr[offsetof(entry, length)]);
}
-NBLog::EntryIterator NBLog::FormatEntry::begin() const {
- return EntryIterator(mEntry);
-}
-
NBLog::EntryIterator::EntryIterator()
: ptr(nullptr) {}