summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/gui
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-05-14 16:17:12 -0700
committerIgor Murashkin <iam@google.com>2013-05-14 16:56:09 -0700
commit8e2afd9817e53858e3f99f810c0b7abe4c4d5533 (patch)
tree079d789e68d6afb3783682bc096bf220623b24a5 /services/camera/libcameraservice/gui
parenta2d2dc67ecdbd8c6892c3cff11d076110dee75ef (diff)
downloadframeworks_av-8e2afd9817e53858e3f99f810c0b7abe4c4d5533.zip
frameworks_av-8e2afd9817e53858e3f99f810c0b7abe4c4d5533.tar.gz
frameworks_av-8e2afd9817e53858e3f99f810c0b7abe4c4d5533.tar.bz2
Camera: don't spam RingBufferConsumer logs in eng builds
Bug: 8969579 Change-Id: Ia51d4072725754fd3b6ca028232a605885376287
Diffstat (limited to 'services/camera/libcameraservice/gui')
-rw-r--r--services/camera/libcameraservice/gui/RingBufferConsumer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/camera/libcameraservice/gui/RingBufferConsumer.cpp b/services/camera/libcameraservice/gui/RingBufferConsumer.cpp
index 1b2a717..c7790fc 100644
--- a/services/camera/libcameraservice/gui/RingBufferConsumer.cpp
+++ b/services/camera/libcameraservice/gui/RingBufferConsumer.cpp
@@ -14,9 +14,6 @@
* limitations under the License.
*/
-#undef NDEBUG
-#include <cassert>
-
//#define LOG_NDEBUG 0
#define LOG_TAG "RingBufferConsumer"
#define ATRACE_TAG ATRACE_TAG_GRAPHICS
@@ -30,6 +27,9 @@
#define BI_LOGW(x, ...) ALOGW("[%s] "x, mName.string(), ##__VA_ARGS__)
#define BI_LOGE(x, ...) ALOGE("[%s] "x, mName.string(), ##__VA_ARGS__)
+#undef assert
+#define assert(x) ALOG_ASSERT((x), #x)
+
typedef android::RingBufferConsumer::PinnedBufferItem PinnedBufferItem;
namespace android {