diff options
| author | 2012-01-09 10:13:41 -0800 | |
|---|---|---|
| committer | 2012-01-09 10:13:41 -0800 | |
| commit | 08289f55eae5c4127091360e862f78d57ae24c15 (patch) | |
| tree | 4bc65b61ad79f1a6326aff3d501056a57695fa4b /libs/utils/FileMap.cpp | |
| parent | c0c3025cf2b887b4eb7020c1b7e6f0db69a51aef (diff) | |
| parent | 3762c311729fe9f3af085c14c5c1fb471d994c03 (diff) | |
Merge "Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE"
Diffstat (limited to 'libs/utils/FileMap.cpp')
| -rw-r--r-- | libs/utils/FileMap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/utils/FileMap.cpp b/libs/utils/FileMap.cpp index c9a423e7de4b..9ce370e0ebda 100644 --- a/libs/utils/FileMap.cpp +++ b/libs/utils/FileMap.cpp @@ -108,7 +108,7 @@ bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t le mFileHandle = (HANDLE) _get_osfhandle(fd); mFileMapping = CreateFileMapping( mFileHandle, NULL, protect, 0, 0, NULL); if (mFileMapping == NULL) { - LOGE("CreateFileMapping(%p, %lx) failed with error %ld\n", + ALOGE("CreateFileMapping(%p, %lx) failed with error %ld\n", mFileHandle, protect, GetLastError() ); return false; } @@ -123,7 +123,7 @@ bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t le (DWORD)(adjOffset), adjLength ); if (mBasePtr == NULL) { - LOGE("MapViewOfFile(%ld, %ld) failed with error %ld\n", + ALOGE("MapViewOfFile(%ld, %ld) failed with error %ld\n", adjOffset, adjLength, GetLastError() ); CloseHandle(mFileMapping); mFileMapping = INVALID_HANDLE_VALUE; @@ -147,7 +147,7 @@ bool FileMap::create(const char* origFileName, int fd, off64_t offset, size_t le #if NOT_USING_KLIBC mPageSize = sysconf(_SC_PAGESIZE); if (mPageSize == -1) { - LOGE("could not get _SC_PAGESIZE\n"); + ALOGE("could not get _SC_PAGESIZE\n"); return false; } #else @@ -175,7 +175,7 @@ try_again: goto try_again; } - LOGE("mmap(%ld,%ld) failed: %s\n", + ALOGE("mmap(%ld,%ld) failed: %s\n", (long) adjOffset, (long) adjLength, strerror(errno)); return false; } |