diff --git a/libdmabufheap/include/dmabuf_alloc.h b/libdmabufheap/include/dmabuf_alloc.h index abec18f59d6c56f8330e91033ba40670a17aa049..64455b6f3eedfdbe4ea836711afdc4ed3fdbd3de 100644 --- a/libdmabufheap/include/dmabuf_alloc.h +++ b/libdmabufheap/include/dmabuf_alloc.h @@ -23,6 +23,9 @@ #undef LOG_TAG #define LOG_TAG "dmabufheap" +#undef LOG_DOMAIN +#define LOG_DOMAIN 0xD001799 + #ifdef __cplusplus #if __cplusplus extern "C" { diff --git a/libdmabufheap/src/dmabuf_alloc.c b/libdmabufheap/src/dmabuf_alloc.c index 63d34e430212549e0afbf9401718dc7d1fb7b842..871c527162924fc9c67bc5efcb52211bf53ed207 100644 --- a/libdmabufheap/src/dmabuf_alloc.c +++ b/libdmabufheap/src/dmabuf_alloc.c @@ -96,6 +96,7 @@ int DmabufHeapBufferAlloc(unsigned int heapFd, DmabufHeapBuffer *buffer) .fd_flags = O_RDWR | O_CLOEXEC, .heap_flags = buffer->heapFlags, }; + HILOG_INFO(LOG_CORE, "data.heap_flags = %{public}016llx", data.heap_flags); int ret = ioctl(heapFd, DMA_HEAP_IOCTL_ALLOC, &data); if (ret < 0) { HILOG_ERROR(LOG_CORE, "alloc buffer failed, size = %zu, ret = %d.", buffer->size, ret);