From 60d056bf2926357260592409dee31374fa8e301b Mon Sep 17 00:00:00 2001 From: Steve Block Date: Sun, 8 Jan 2012 10:17:53 +0000 Subject: Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I0cbe865d464a37365fa3be84948b07e5a0d181d0 --- modules/gralloc/framebuffer.cpp | 4 ++-- modules/gralloc/gralloc.cpp | 4 ++-- modules/gralloc/gralloc_priv.h | 2 +- modules/gralloc/mapper.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/gralloc') diff --git a/modules/gralloc/framebuffer.cpp b/modules/gralloc/framebuffer.cpp index cf18ed2..a37e2c0 100644 --- a/modules/gralloc/framebuffer.cpp +++ b/modules/gralloc/framebuffer.cpp @@ -98,7 +98,7 @@ static int fb_post(struct framebuffer_device_t* dev, buffer_handle_t buffer) m->info.activate = FB_ACTIVATE_VBL; m->info.yoffset = offset / m->finfo.line_length; if (ioctl(m->framebuffer->fd, FBIOPUT_VSCREENINFO, &m->info) == -1) { - LOGE("FBIOPUT_VSCREENINFO failed"); + ALOGE("FBIOPUT_VSCREENINFO failed"); m->base.unlock(&m->base, buffer); return -errno; } @@ -280,7 +280,7 @@ int mapFrameBufferLocked(struct private_module_t* module) void* vaddr = mmap(0, fbSize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if (vaddr == MAP_FAILED) { - LOGE("Error mapping the framebuffer (%s)", strerror(errno)); + ALOGE("Error mapping the framebuffer (%s)", strerror(errno)); return -errno; } module->framebuffer->base = intptr_t(vaddr); diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp index dcd2e2b..a6b4edd 100644 --- a/modules/gralloc/gralloc.cpp +++ b/modules/gralloc/gralloc.cpp @@ -175,7 +175,7 @@ static int gralloc_alloc_buffer(alloc_device_t* dev, fd = ashmem_create_region("gralloc-buffer", size); if (fd < 0) { - LOGE("couldn't create ashmem (%s)", strerror(-errno)); + ALOGE("couldn't create ashmem (%s)", strerror(-errno)); err = -errno; } @@ -189,7 +189,7 @@ static int gralloc_alloc_buffer(alloc_device_t* dev, } } - LOGE_IF(err, "gralloc failed err=%s", strerror(-err)); + ALOGE_IF(err, "gralloc failed err=%s", strerror(-err)); return err; } diff --git a/modules/gralloc/gralloc_priv.h b/modules/gralloc/gralloc_priv.h index 75bcd1d..e1c502a 100644 --- a/modules/gralloc/gralloc_priv.h +++ b/modules/gralloc/gralloc_priv.h @@ -101,7 +101,7 @@ struct private_handle_t { h->numInts != sNumInts || h->numFds != sNumFds || hnd->magic != sMagic) { - LOGE("invalid gralloc handle (at %p)", h); + ALOGE("invalid gralloc handle (at %p)", h); return -EINVAL; } return 0; diff --git a/modules/gralloc/mapper.cpp b/modules/gralloc/mapper.cpp index ec333dc..c4096ae 100644 --- a/modules/gralloc/mapper.cpp +++ b/modules/gralloc/mapper.cpp @@ -53,7 +53,7 @@ static int gralloc_map(gralloc_module_t const* module, void* mappedAddress = mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); if (mappedAddress == MAP_FAILED) { - LOGE("Could not mmap %s", strerror(errno)); + ALOGE("Could not mmap %s", strerror(errno)); return -errno; } hnd->base = intptr_t(mappedAddress) + hnd->offset; @@ -73,7 +73,7 @@ static int gralloc_unmap(gralloc_module_t const* module, size_t size = hnd->size; //ALOGD("unmapping from %p, size=%d", base, size); if (munmap(base, size) < 0) { - LOGE("Could not unmap %s", strerror(errno)); + ALOGE("Could not unmap %s", strerror(errno)); } } hnd->base = 0; -- cgit v1.1