summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gralloc_drm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gralloc_drm.c b/gralloc_drm.c
index 3f3f529..93a01b4 100644
--- a/gralloc_drm.c
+++ b/gralloc_drm.c
@@ -110,6 +110,17 @@ init_drv_from_fd(int fd)
return drv;
}
+static int drm_debug_print(const char *format, va_list ap)
+{
+ __android_log_vprint(ANDROID_LOG_INFO, LOG_TAG, format, ap);
+ return 0;
+}
+
+
+static const drmServerInfo server_info = {
+ .debug_print = drm_debug_print,
+};
+
/*
* Create a DRM device object.
*/
@@ -135,6 +146,8 @@ struct gralloc_drm_t *gralloc_drm_create(void)
return NULL;
}
+ drmSetServerInfo(&server_info);
+
return drm;
}