summaryrefslogtreecommitdiff
path: root/gralloc4/src/mali_gralloc_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'gralloc4/src/mali_gralloc_log.h')
-rw-r--r--gralloc4/src/mali_gralloc_log.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/gralloc4/src/mali_gralloc_log.h b/gralloc4/src/mali_gralloc_log.h
index 80c607d..aa4e26c 100644
--- a/gralloc4/src/mali_gralloc_log.h
+++ b/gralloc4/src/mali_gralloc_log.h
@@ -21,27 +21,12 @@
#define LOG_TAG "mali_gralloc"
#endif
-#include <mutex>
-#include <string>
-#include <vector>
-
#include <log/log.h>
-enum class LogLevel {
- INFO,
- VERBOSE,
- WARNING,
- ERROR
-};
-
-void log_setup();
-void log_later(LogLevel level, const char* fmt, ...);
-void log_commit();
-void log_info_verbose_as_warning();
-
-#define MALI_GRALLOC_LOGI(...) log_later(LogLevel::INFO, __VA_ARGS__);
-#define MALI_GRALLOC_LOGV(...) log_later(LogLevel::VERBOSE, __VA_ARGS__);
-#define MALI_GRALLOC_LOGW(...) log_later(LogLevel::WARNING, __VA_ARGS__);
-#define MALI_GRALLOC_LOGE(...) log_later(LogLevel::ERROR, __VA_ARGS__);
+/* Delegate logging to Android */
+#define MALI_GRALLOC_LOGI(...) ALOGI(__VA_ARGS__)
+#define MALI_GRALLOC_LOGV(...) ALOGV(__VA_ARGS__)
+#define MALI_GRALLOC_LOGW(...) ALOGW(__VA_ARGS__)
+#define MALI_GRALLOC_LOGE(...) ALOGE(__VA_ARGS__)
#endif