diff options
| author | 2014-11-07 22:35:42 +0000 | |
|---|---|---|
| committer | 2014-11-07 22:35:42 +0000 | |
| commit | 487ae9b8dc3e08c1a830d519a801a07cd59c8f2b (patch) | |
| tree | 90021b6b6e74fe37a5f3f615ad15d3bc4f180d5f /libs/androidfw/Asset.cpp | |
| parent | e80c01e8d124c69ca60fc8e7a0ca7001be3796e0 (diff) | |
| parent | 2204f0bf56af53b588a01701b8cf9cd05b1b3ff9 (diff) | |
Merge "Frameworks/base: Wall Werror in libs/androidfw"
Diffstat (limited to 'libs/androidfw/Asset.cpp')
| -rw-r--r-- | libs/androidfw/Asset.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/androidfw/Asset.cpp b/libs/androidfw/Asset.cpp index 589211fa60b8..4b3382e4fc5d 100644 --- a/libs/androidfw/Asset.cpp +++ b/libs/androidfw/Asset.cpp @@ -45,6 +45,8 @@ using namespace android; # define O_BINARY 0 #endif +static const bool kIsDebug = false; + static Mutex gAssetLock; static int32_t gCount = 0; static Asset* gHead = NULL; @@ -89,7 +91,9 @@ Asset::Asset(void) gTail->mNext = this; gTail = this; } - //ALOGI("Creating Asset %p #%d\n", this, gCount); + if (kIsDebug) { + ALOGI("Creating Asset %p #%d\n", this, gCount); + } } Asset::~Asset(void) @@ -109,7 +113,9 @@ Asset::~Asset(void) mPrev->mNext = mNext; } mNext = mPrev = NULL; - //ALOGI("Destroying Asset in %p #%d\n", this, gCount); + if (kIsDebug) { + ALOGI("Destroying Asset in %p #%d\n", this, gCount); + } } /* |