• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoapythonrubywindowsphpgameguibathyscaphec翻訳omegatframework計画中(planning stage)twitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

external/gbm_gralloc


Commit MetaInfo

Revisioncecd1a2c8504aad5ce9ad62b27f9653ca09ce9d5 (tree)
Time2020-09-17 22:37:50
AuthorJohn Stultz <john.stultz@lina...>
CommiterRob Herring

Log Message

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>

Change Summary

Incremental Difference

--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -420,7 +420,7 @@ int gralloc_gbm_bo_lock(buffer_handle_t handle,
420420 gbm_bo_set_user_data(bo, bo_data, gralloc_gbm_destroy_user_data);
421421 }
422422
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);
424424
425425 /* allow multiple locks with compatible usages */
426426 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,
494494 void *addr = 0;
495495 int err;
496496
497- ALOGD("handle %p, hnd %p, usage 0x%x", handle, hnd, usage);
497+ ALOGV("handle %p, hnd %p, usage 0x%x", handle, hnd, usage);
498498
499499 err = gralloc_gbm_bo_lock(handle, usage, x, y, w, h, &addr);
500500 if (err)