OSDN Git Service

perfprofd: build error
authorMark Salyzyn <salyzyn@google.com>
Thu, 29 Sep 2016 17:44:36 +0000 (10:44 -0700)
committerMark Salyzyn <salyzyn@google.com>
Thu, 29 Sep 2016 21:32:01 +0000 (14:32 -0700)
Must define LOG_TAG before including android/log.h

Test: build success
Bug: 26552300
Bug: 31289077
Change-Id: I8405c4fe21984aa1d339c6e7e452e70a43324c8b

perfprofd/quipper/base/logging.cc

index cc73d28..7079024 100644 (file)
@@ -4,6 +4,8 @@
 // the system log.
 //
 
+#define LOG_TAG "perf_reader"
+
 #include "quipper/base/logging.h"
 
 #if defined(OS_POSIX)
@@ -24,8 +26,6 @@
 
 #include <android/log.h>
 
-#define LOG_TAG "perf_reader"
-
 namespace logging {
 
 namespace {