diff options
| author | 2012-01-19 14:47:22 -0800 | |
|---|---|---|
| committer | 2012-01-19 14:47:22 -0800 | |
| commit | 6df477be186233e36fc370c4d2db6c1ed928a740 (patch) | |
| tree | df4401aaa38914e03d5eadc82507e7c6fdcc573e /libs/utils/FileMap.cpp | |
| parent | a826f9e2c4f6329d8d48c927f6e942e78ffaf92f (diff) | |
| parent | c6aacce37191e1cc79cfeba13b39899f59c68c3b (diff) | |
Merge "Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)"
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; } |