diff options
author | Jorge E. Moreira <jemoreira@google.com> | 2019-07-08 13:53:45 -0700 |
---|---|---|
committer | Jorge E. Moreira <jemoreira@google.com> | 2019-07-08 13:53:45 -0700 |
commit | 25bc8c1a99aa974e225554551c15a0669bd997f4 (patch) | |
tree | b4f9927b5b6b13fc7442755b8bae9a887cd79205 | |
parent | faea0625f2b0294769db6f479c9db6ef98b45662 (diff) | |
download | cuttlefish_common-cuttlefish-testing.tar.gz |
Less verbose gralloccuttlefish-testing
Bug: 128355472
Test: run locally
Change-Id: Id4354df7f16683f1ccd5cfc7ce97095098defc46
-rw-r--r-- | guest/hals/gralloc/legacy/region_registry.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/guest/hals/gralloc/legacy/region_registry.cpp b/guest/hals/gralloc/legacy/region_registry.cpp index f1880674..827bf88b 100644 --- a/guest/hals/gralloc/legacy/region_registry.cpp +++ b/guest/hals/gralloc/legacy/region_registry.cpp @@ -200,16 +200,16 @@ void* reference_region(const char* op, const private_handle_t* hnd) { strerror(errno)); } region->base_ = mappedAddress; - ALOGI("Mapped %s hnd=%p fd=%d base=%p format=%s(0x%x) width=%d height=%d", - name_buf, hnd, hnd->fd, region->base_, - pixel_format_to_string(hnd->format), hnd->format, - hnd->x_res, hnd->y_res); + ALOGI_IF(g_log_refs, "Mapped %s hnd=%p fd=%d base=%p format=%s(0x%x)" + " width=%d height=%d", name_buf, hnd, hnd->fd, region->base_, + pixel_format_to_string(hnd->format), hnd->format, + hnd->x_res, hnd->y_res); } void* rval = region->base_; ++region->num_references_; ALOGI_IF(g_log_refs, "Referencing name=%s op=%s addr=%p new numRefs=%d", - name_buf, op, region->base_, region->num_references_); + name_buf, op, region->base_, region->num_references_); unlock_region(region); return rval; } @@ -232,15 +232,15 @@ int unreference_region(const char* op, const private_handle_t* hnd) { } --region->num_references_; if (!region->num_references_) { - ALOGI("Unmapped %s hnd=%p fd=%d base=%p", name_buf, hnd, - hnd->fd, region->base_); + ALOGI_IF(g_log_refs, "Unmapped %s hnd=%p fd=%d base=%p", name_buf, hnd, + hnd->fd, region->base_); if (recycle_munmap(region->base_, hnd->total_size) < 0) { ALOGE("Could not unmap %s", strerror(errno)); } region->base_ = 0; } ALOGI_IF(g_log_refs, "Unreferencing name=%s op=%s addr=%p new numRefs=%d", - name_buf, op, region->base_, region->num_references_); + name_buf, op, region->base_, region->num_references_); unlock_region(region); return 0; } |