diff options
author | Elliott Hughes <enh@google.com> | 2013-03-13 14:35:55 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-03-13 18:19:20 -0700 |
commit | 7f974ff2f317ffbf9256579109f000ec876c3037 (patch) | |
tree | 0c7abf312040b931533ddf72874bbb2c8f9966bc /libs/binder/IMemory.cpp | |
parent | ba8abb517d1eddebeda62bf907fa446e3c3b81f6 (diff) | |
download | frameworks_native-7f974ff2f317ffbf9256579109f000ec876c3037.zip frameworks_native-7f974ff2f317ffbf9256579109f000ec876c3037.tar.gz frameworks_native-7f974ff2f317ffbf9256579109f000ec876c3037.tar.bz2 |
Add a compatibility symbol for the MemoryBase constructor.
Third-party libraries are currently trying to use the
MemoryBase constructor but failing because we fixed the
definition of ssize_t. This is a stop-gap for users of
this private API until we can get them fixed.
Bug: 8253769
Change-Id: I8a19770f3252d88ee87023fde625cc6289924b0d
Diffstat (limited to 'libs/binder/IMemory.cpp')
-rw-r--r-- | libs/binder/IMemory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/IMemory.cpp b/libs/binder/IMemory.cpp index cd2451a..947ac19 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=%ld, err=%d (%s)", + ALOGE_IF(err, "binder=%p transaction failed fd=%d, size=%d, 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=%ld, err=%d (%s)", + ALOGE_IF(fd==-1, "cannot dup fd=%d, size=%d, 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=%ld, fd=%d (%s)", + ALOGE("cannot map BpMemoryHeap (binder=%p), size=%d, fd=%d (%s)", asBinder().get(), size, fd, strerror(errno)); close(fd); } else { |