Use Android log system in helpers.c.
This code might be loaded by a daemonized process now, so the existing logging to stderr goes nowhere. It's better to use the Android logger. Change-Id: I19f088b8f049f07c9c6839038d2971fad1a0e852 Reviewed-on: https://chromium-review.googlesource.com/971360 Commit-Ready: Alistair Strachan <astrachan@google.com> Tested-by: Alistair Strachan <astrachan@google.com> Reviewed-by: Alistair Strachan <astrachan@google.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
ce717c5096
commit
0cfaaa5adb
17 changed files with 98 additions and 99 deletions
|
|
@ -186,7 +186,7 @@ static int rockchip_bo_create_with_modifiers(struct bo *bo, uint32_t width, uint
|
|||
} else {
|
||||
if (!has_modifier(modifiers, count, DRM_FORMAT_MOD_LINEAR)) {
|
||||
errno = EINVAL;
|
||||
fprintf(stderr, "no usable modifier found\n");
|
||||
drv_log("no usable modifier found\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -212,8 +212,7 @@ static int rockchip_bo_create_with_modifiers(struct bo *bo, uint32_t width, uint
|
|||
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_ROCKCHIP_GEM_CREATE, &gem_create);
|
||||
|
||||
if (ret) {
|
||||
fprintf(stderr, "drv: DRM_IOCTL_ROCKCHIP_GEM_CREATE failed (size=%llu)\n",
|
||||
gem_create.size);
|
||||
drv_log("DRM_IOCTL_ROCKCHIP_GEM_CREATE failed (size=%llu)\n", gem_create.size);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -247,7 +246,7 @@ static void *rockchip_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint3
|
|||
|
||||
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_ROCKCHIP_GEM_MAP_OFFSET, &gem_map);
|
||||
if (ret) {
|
||||
fprintf(stderr, "drv: DRM_IOCTL_ROCKCHIP_GEM_MAP_OFFSET failed\n");
|
||||
drv_log("DRM_IOCTL_ROCKCHIP_GEM_MAP_OFFSET failed\n");
|
||||
return MAP_FAILED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue