Loading cmds/keystore/keystore.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -133,7 +133,7 @@ public: const char* randomDevice = "/dev/urandom"; mRandom = ::open(randomDevice, O_RDONLY); if (mRandom == -1) { LOGE("open: %s: %s", randomDevice, strerror(errno)); ALOGE("open: %s: %s", randomDevice, strerror(errno)); return false; } return true; Loading Loading @@ -754,11 +754,11 @@ static ResponseCode process(KeyStore* keyStore, int sock, uid_t uid, int8_t code int main(int argc, char* argv[]) { int controlSocket = android_get_control_socket("keystore"); if (argc < 2) { LOGE("A directory must be specified!"); ALOGE("A directory must be specified!"); return 1; } if (chdir(argv[1]) == -1) { LOGE("chdir: %s: %s", argv[1], strerror(errno)); ALOGE("chdir: %s: %s", argv[1], strerror(errno)); return 1; } Loading @@ -767,7 +767,7 @@ int main(int argc, char* argv[]) { return 1; } if (listen(controlSocket, 3) == -1) { LOGE("listen: %s", strerror(errno)); ALOGE("listen: %s", strerror(errno)); return 1; } Loading Loading @@ -805,6 +805,6 @@ int main(int argc, char* argv[]) { } close(sock); } LOGE("accept: %s", strerror(errno)); ALOGE("accept: %s", strerror(errno)); return 1; } include/utils/GenerationCache.h +1 −1 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ bool GenerationCache<K, V>::removeOldest() { removeAt(index); return true; } LOGE("GenerationCache: removeOldest failed to find the item in the cache " ALOGE("GenerationCache: removeOldest failed to find the item in the cache " "with the given key, but we know it must be in there. " "Is the key comparator kaput?"); } Loading libs/binder/BpBinder.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ void BpBinder::ObjectManager::attach( e.func = func; if (mObjects.indexOfKey(objectID) >= 0) { LOGE("Trying to attach object ID %p to binder ObjectManager %p with object %p, but object ID already in use", ALOGE("Trying to attach object ID %p to binder ObjectManager %p with object %p, but object ID already in use", objectID, this, object); return; } Loading libs/binder/CursorWindow.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ status_t CursorWindow::setNumColumns(uint32_t numColumns) { uint32_t cur = mHeader->numColumns; if ((cur > 0 || mHeader->numRows > 0) && cur != numColumns) { LOGE("Trying to go from %d columns to %d", cur, numColumns); ALOGE("Trying to go from %d columns to %d", cur, numColumns); return INVALID_OPERATION; } mHeader->numColumns = numColumns; Loading Loading @@ -255,14 +255,14 @@ CursorWindow::RowSlot* CursorWindow::allocRowSlot() { CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { if (row >= mHeader->numRows || column >= mHeader->numColumns) { LOGE("Failed to read row %d, column %d from a CursorWindow which " ALOGE("Failed to read row %d, column %d from a CursorWindow which " "has %d rows, %d columns.", row, column, mHeader->numRows, mHeader->numColumns); return NULL; } RowSlot* rowSlot = getRowSlot(row); if (!rowSlot) { LOGE("Failed to find rowSlot for row %d.", row); ALOGE("Failed to find rowSlot for row %d.", row); return NULL; } FieldSlot* fieldDir = static_cast<FieldSlot*>(offsetToPtr(rowSlot->offset)); Loading libs/binder/IMemory.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -298,11 +298,11 @@ void BpMemoryHeap::assertReallyMapped() const uint32_t flags = reply.readInt32(); uint32_t offset = reply.readInt32(); LOGE_IF(err, "binder=%p transaction failed fd=%d, size=%ld, 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 ); LOGE_IF(fd==-1, "cannot dup fd=%d, size=%ld, 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; Loading @@ -315,7 +315,7 @@ void BpMemoryHeap::assertReallyMapped() const mRealHeap = true; mBase = mmap(0, size, access, MAP_SHARED, fd, offset); if (mBase == MAP_FAILED) { LOGE("cannot map BpMemoryHeap (binder=%p), size=%ld, fd=%d (%s)", ALOGE("cannot map BpMemoryHeap (binder=%p), size=%ld, fd=%d (%s)", asBinder().get(), size, fd, strerror(errno)); close(fd); } else { Loading Loading @@ -446,7 +446,7 @@ void HeapCache::free_heap(const wp<IBinder>& binder) mHeapCache.removeItemsAt(i); } } else { LOGE("free_heap binder=%p not found!!!", binder.unsafe_get()); ALOGE("free_heap binder=%p not found!!!", binder.unsafe_get()); } } } Loading Loading
cmds/keystore/keystore.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -133,7 +133,7 @@ public: const char* randomDevice = "/dev/urandom"; mRandom = ::open(randomDevice, O_RDONLY); if (mRandom == -1) { LOGE("open: %s: %s", randomDevice, strerror(errno)); ALOGE("open: %s: %s", randomDevice, strerror(errno)); return false; } return true; Loading Loading @@ -754,11 +754,11 @@ static ResponseCode process(KeyStore* keyStore, int sock, uid_t uid, int8_t code int main(int argc, char* argv[]) { int controlSocket = android_get_control_socket("keystore"); if (argc < 2) { LOGE("A directory must be specified!"); ALOGE("A directory must be specified!"); return 1; } if (chdir(argv[1]) == -1) { LOGE("chdir: %s: %s", argv[1], strerror(errno)); ALOGE("chdir: %s: %s", argv[1], strerror(errno)); return 1; } Loading @@ -767,7 +767,7 @@ int main(int argc, char* argv[]) { return 1; } if (listen(controlSocket, 3) == -1) { LOGE("listen: %s", strerror(errno)); ALOGE("listen: %s", strerror(errno)); return 1; } Loading Loading @@ -805,6 +805,6 @@ int main(int argc, char* argv[]) { } close(sock); } LOGE("accept: %s", strerror(errno)); ALOGE("accept: %s", strerror(errno)); return 1; }
include/utils/GenerationCache.h +1 −1 Original line number Diff line number Diff line Loading @@ -205,7 +205,7 @@ bool GenerationCache<K, V>::removeOldest() { removeAt(index); return true; } LOGE("GenerationCache: removeOldest failed to find the item in the cache " ALOGE("GenerationCache: removeOldest failed to find the item in the cache " "with the given key, but we know it must be in there. " "Is the key comparator kaput?"); } Loading
libs/binder/BpBinder.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ void BpBinder::ObjectManager::attach( e.func = func; if (mObjects.indexOfKey(objectID) >= 0) { LOGE("Trying to attach object ID %p to binder ObjectManager %p with object %p, but object ID already in use", ALOGE("Trying to attach object ID %p to binder ObjectManager %p with object %p, but object ID already in use", objectID, this, object); return; } Loading
libs/binder/CursorWindow.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ status_t CursorWindow::setNumColumns(uint32_t numColumns) { uint32_t cur = mHeader->numColumns; if ((cur > 0 || mHeader->numRows > 0) && cur != numColumns) { LOGE("Trying to go from %d columns to %d", cur, numColumns); ALOGE("Trying to go from %d columns to %d", cur, numColumns); return INVALID_OPERATION; } mHeader->numColumns = numColumns; Loading Loading @@ -255,14 +255,14 @@ CursorWindow::RowSlot* CursorWindow::allocRowSlot() { CursorWindow::FieldSlot* CursorWindow::getFieldSlot(uint32_t row, uint32_t column) { if (row >= mHeader->numRows || column >= mHeader->numColumns) { LOGE("Failed to read row %d, column %d from a CursorWindow which " ALOGE("Failed to read row %d, column %d from a CursorWindow which " "has %d rows, %d columns.", row, column, mHeader->numRows, mHeader->numColumns); return NULL; } RowSlot* rowSlot = getRowSlot(row); if (!rowSlot) { LOGE("Failed to find rowSlot for row %d.", row); ALOGE("Failed to find rowSlot for row %d.", row); return NULL; } FieldSlot* fieldDir = static_cast<FieldSlot*>(offsetToPtr(rowSlot->offset)); Loading
libs/binder/IMemory.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -298,11 +298,11 @@ void BpMemoryHeap::assertReallyMapped() const uint32_t flags = reply.readInt32(); uint32_t offset = reply.readInt32(); LOGE_IF(err, "binder=%p transaction failed fd=%d, size=%ld, 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 ); LOGE_IF(fd==-1, "cannot dup fd=%d, size=%ld, 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; Loading @@ -315,7 +315,7 @@ void BpMemoryHeap::assertReallyMapped() const mRealHeap = true; mBase = mmap(0, size, access, MAP_SHARED, fd, offset); if (mBase == MAP_FAILED) { LOGE("cannot map BpMemoryHeap (binder=%p), size=%ld, fd=%d (%s)", ALOGE("cannot map BpMemoryHeap (binder=%p), size=%ld, fd=%d (%s)", asBinder().get(), size, fd, strerror(errno)); close(fd); } else { Loading Loading @@ -446,7 +446,7 @@ void HeapCache::free_heap(const wp<IBinder>& binder) mHeapCache.removeItemsAt(i); } } else { LOGE("free_heap binder=%p not found!!!", binder.unsafe_get()); ALOGE("free_heap binder=%p not found!!!", binder.unsafe_get()); } } } Loading