From 5cea14d897338b8f540067284e7c5fa907c8068f Mon Sep 17 00:00:00 2001 From: Ankit Goyal Date: Thu, 7 Dec 2023 19:09:44 -0800 Subject: gralloc4: Warn about invalid usage (rather than error) Bug: 315351672 Test: Builds Change-Id: I229a771f5bc7028242736ad6f8ed725eef4f91a3 --- gralloc4/src/core/mali_gralloc_formats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gralloc4/src/core/mali_gralloc_formats.cpp b/gralloc4/src/core/mali_gralloc_formats.cpp index 4bcc9ce..e36e27d 100644 --- a/gralloc4/src/core/mali_gralloc_formats.cpp +++ b/gralloc4/src/core/mali_gralloc_formats.cpp @@ -1502,7 +1502,7 @@ uint64_t mali_gralloc_select_format(const uint64_t req_format, /* Reject if usage specified is outside white list of valid usages. */ if (type != MALI_GRALLOC_FORMAT_TYPE_INTERNAL && (usage & (~VALID_USAGE)) != 0) { - MALI_GRALLOC_LOGE("Invalid usage specified: %s 0x%" PRIx64, describe_usage(usage).c_str(), usage); + MALI_GRALLOC_LOGW("Invalid usage specified: %s 0x%" PRIx64, describe_usage(usage).c_str(), usage); } /* TODO: Make a function for finding formats that should be allocated as the request format */ -- cgit v1.2.3