external/gbm_gralloc
Revision | cecd1a2c8504aad5ce9ad62b27f9653ca09ce9d5 (tree) |
---|---|
Time | 2020-09-17 22:37:50 |
Author | John Stultz <john.stultz@lina...> |
Commiter | Rob Herring |
gralloc_gbm: Quiet logcat verbosity
When using gralloc_gbm, especially playing yuv video, there's tons
of log noise like:
09-17 05:46:12.823 494 2001 D GRALLOC-GBM: handle 0xb400006d6a4d4380, hnd 0xb400006d6a4d4380, usage 0x33
09-17 05:46:12.824 494 2001 I GRALLOC-GBM: lock bo 0xb400006d7a4a26f0, cnt=0, usage=33
over and over.
So set these two messages to verbose via ALOGV.
Signed-off-by: John Stultz <john.stultz@linaro.org>
@@ -420,7 +420,7 @@ int gralloc_gbm_bo_lock(buffer_handle_t handle, | ||
420 | 420 | gbm_bo_set_user_data(bo, bo_data, gralloc_gbm_destroy_user_data); |
421 | 421 | } |
422 | 422 | |
423 | - ALOGI("lock bo %p, cnt=%d, usage=%x", bo, bo_data->lock_count, usage); | |
423 | + ALOGV("lock bo %p, cnt=%d, usage=%x", bo, bo_data->lock_count, usage); | |
424 | 424 | |
425 | 425 | /* allow multiple locks with compatible usages */ |
426 | 426 | if (bo_data->lock_count && (bo_data->locked_for & usage) != usage) |
@@ -494,7 +494,7 @@ int gralloc_gbm_bo_lock_ycbcr(buffer_handle_t handle, | ||
494 | 494 | void *addr = 0; |
495 | 495 | int err; |
496 | 496 | |
497 | - ALOGD("handle %p, hnd %p, usage 0x%x", handle, hnd, usage); | |
497 | + ALOGV("handle %p, hnd %p, usage 0x%x", handle, hnd, usage); | |
498 | 498 | |
499 | 499 | err = gralloc_gbm_bo_lock(handle, usage, x, y, w, h, &addr); |
500 | 500 | if (err) |