diff options
author | Elliott Hughes <enh@google.com> | 2013-03-14 02:56:34 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-03-14 02:56:34 +0000 |
commit | 6dbf07d7d507ced94b00c73ce5b3c1eb3debc7ad (patch) | |
tree | e0ab70f40b9dae2791fec8de3602d8bee86603c0 /libs/binder | |
parent | 7f974ff2f317ffbf9256579109f000ec876c3037 (diff) | |
download | frameworks_native-6dbf07d7d507ced94b00c73ce5b3c1eb3debc7ad.zip frameworks_native-6dbf07d7d507ced94b00c73ce5b3c1eb3debc7ad.tar.gz frameworks_native-6dbf07d7d507ced94b00c73ce5b3c1eb3debc7ad.tar.bz2 |
Revert "Add a compatibility symbol for the MemoryBase constructor."
This reverts commit 7f974ff2f317ffbf9256579109f000ec876c3037
Change-Id: I28ebfc5ac88bd025471b613aa7958d23749e6991
Diffstat (limited to 'libs/binder')
-rw-r--r-- | libs/binder/IMemory.cpp | 6 | ||||
-rw-r--r-- | libs/binder/MemoryBase.cpp | 9 |
2 files changed, 3 insertions, 12 deletions
diff --git a/libs/binder/IMemory.cpp b/libs/binder/IMemory.cpp index 947ac19..cd2451a 100644 --- a/libs/binder/IMemory.cpp +++ b/libs/binder/IMemory.cpp @@ -298,11 +298,11 @@ void BpMemoryHeap::assertReallyMapped() const uint32_t flags = reply.readInt32(); uint32_t offset = reply.readInt32(); - ALOGE_IF(err, "binder=%p transaction failed fd=%d, size=%d, err=%d (%s)", + ALOGE_IF(err, "binder=%p transaction failed fd=%d, size=%ld, err=%d (%s)", asBinder().get(), parcel_fd, size, err, strerror(-err)); int fd = dup( parcel_fd ); - ALOGE_IF(fd==-1, "cannot dup fd=%d, size=%d, err=%d (%s)", + ALOGE_IF(fd==-1, "cannot dup fd=%d, size=%ld, err=%d (%s)", parcel_fd, size, err, strerror(errno)); int access = PROT_READ; @@ -315,7 +315,7 @@ void BpMemoryHeap::assertReallyMapped() const mRealHeap = true; mBase = mmap(0, size, access, MAP_SHARED, fd, offset); if (mBase == MAP_FAILED) { - ALOGE("cannot map BpMemoryHeap (binder=%p), size=%d, fd=%d (%s)", + ALOGE("cannot map BpMemoryHeap (binder=%p), size=%ld, fd=%d (%s)", asBinder().get(), size, fd, strerror(errno)); close(fd); } else { diff --git a/libs/binder/MemoryBase.cpp b/libs/binder/MemoryBase.cpp index 835124f..033066b 100644 --- a/libs/binder/MemoryBase.cpp +++ b/libs/binder/MemoryBase.cpp @@ -14,7 +14,6 @@ * limitations under the License. */ -#define LOG_TAG "MemoryBase" #include <stdlib.h> #include <stdint.h> @@ -32,14 +31,6 @@ MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, { } -MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, - long offset, unsigned int size) - : mSize(size), mOffset(offset), mHeap(heap) -{ - ALOGW("Using temporary compatibility workaround for usage of MemoryBase " - "private API. Please fix your application!"); -} - sp<IMemoryHeap> MemoryBase::getMemory(ssize_t* offset, size_t* size) const { if (offset) *offset = mOffset; |