diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2009-07-21 11:16:54 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2009-07-21 11:16:54 -0700 |
commit | 4d3b5c1e36f2a3746a1c87f8af97d4fe97e8f49e (patch) | |
tree | 253e04766c56308bdea922e22a75acafa43b666f /libs/utils/Asset.cpp | |
parent | 512837cef2b7203123d0b8df7ad49454ce932a75 (diff) | |
download | frameworks_native-4d3b5c1e36f2a3746a1c87f8af97d4fe97e8f49e.zip frameworks_native-4d3b5c1e36f2a3746a1c87f8af97d4fe97e8f49e.tar.gz frameworks_native-4d3b5c1e36f2a3746a1c87f8af97d4fe97e8f49e.tar.bz2 |
donut snapshot
Diffstat (limited to 'libs/utils/Asset.cpp')
-rw-r--r-- | libs/utils/Asset.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/utils/Asset.cpp b/libs/utils/Asset.cpp index 91203dd..23cb72d 100644 --- a/libs/utils/Asset.cpp +++ b/libs/utils/Asset.cpp @@ -582,11 +582,14 @@ const void* _FileAsset::ensureAlignment(FileMap* map) if ((((size_t)data)&0x3) == 0) { // We can return this directly if it is aligned on a word // boundary. + LOGV("Returning aligned FileAsset %p (%s).", this, + getAssetSource()); return data; } // If not aligned on a word boundary, then we need to copy it into // our own buffer. - LOGV("Copying FileAsset %p to buffer size %d to make it aligned.", this, (int)mLength); + LOGV("Copying FileAsset %p (%s) to buffer size %d to make it aligned.", this, + getAssetSource(), (int)mLength); unsigned char* buf = new unsigned char[mLength]; if (buf == NULL) { LOGE("alloc of %ld bytes failed\n", (long) mLength); |