summaryrefslogtreecommitdiffstats
path: root/ion
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-08 10:18:45 +0000
committerSteve Block <steveblock@google.com>2012-01-08 11:03:25 +0000
commit46de639b23db99d7b99ff1c676ac98b84b6336c6 (patch)
tree8a13cf643d5f01f35b2e4ef547e1ffad43f4f61f /ion
parente158d63111a2547aee847e19aaa6fa6fce14ffe2 (diff)
downloadhardware_ti_omap4xxx-46de639b23db99d7b99ff1c676ac98b84b6336c6.zip
hardware_ti_omap4xxx-46de639b23db99d7b99ff1c676ac98b84b6336c6.tar.gz
hardware_ti_omap4xxx-46de639b23db99d7b99ff1c676ac98b84b6336c6.tar.bz2
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: I7d131473964d92c62a495d082a1207867f435885
Diffstat (limited to 'ion')
-rw-r--r--ion/ion.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ion/ion.c b/ion/ion.c
index 9df344c..7170915 100644
--- a/ion/ion.c
+++ b/ion/ion.c
@@ -35,7 +35,7 @@ int ion_open()
{
int fd = open("/dev/ion", O_RDWR);
if (fd < 0)
- LOGE("open /dev/ion failed!\n");
+ ALOGE("open /dev/ion failed!\n");
return fd;
}
@@ -48,7 +48,7 @@ static int ion_ioctl(int fd, int req, void *arg)
{
int ret = ioctl(fd, req, arg);
if (ret < 0) {
- LOGE("ioctl %d failed with code %d: %s\n", req,
+ ALOGE("ioctl %d failed with code %d: %s\n", req,
ret, strerror(errno));
return -errno;
}
@@ -115,12 +115,12 @@ int ion_map(int fd, struct ion_handle *handle, size_t length, int prot,
return ret;
*map_fd = data.fd;
if (*map_fd < 0) {
- LOGE("map ioctl returned negative fd\n");
+ ALOGE("map ioctl returned negative fd\n");
return -EINVAL;
}
*ptr = mmap(NULL, length, prot, flags, *map_fd, offset);
if (*ptr == MAP_FAILED) {
- LOGE("mmap failed: %s\n", strerror(errno));
+ ALOGE("mmap failed: %s\n", strerror(errno));
return -errno;
}
return ret;
@@ -137,7 +137,7 @@ int ion_share(int fd, struct ion_handle *handle, int *share_fd)
return ret;
*share_fd = data.fd;
if (*share_fd < 0) {
- LOGE("map ioctl returned negative fd\n");
+ ALOGE("map ioctl returned negative fd\n");
return -EINVAL;
}
return ret;