From 4f6591321f449bb117369548e67495166777bf18 Mon Sep 17 00:00:00 2001 From: muxiaoximuxiaoxi Date: Wed, 25 May 2022 04:56:11 -0700 Subject: [PATCH] optimize display log Signed-off-by: muxiaoximuxiaoxi --- hardware/display/include/display_common.h | 7 ++- .../src/display_device/drm_connector.cpp | 4 +- .../display_device/hdi_drm_composition.cpp | 60 +++++++++---------- .../src/display_device/hdi_drm_layer.cpp | 4 +- .../display/src/display_gfx/display_gfx.c | 10 ++-- hardware/display/src/display_gralloc/hi_gbm.c | 6 +- 6 files changed, 48 insertions(+), 43 deletions(-) mode change 100755 => 100644 hardware/display/src/display_device/hdi_drm_composition.cpp diff --git a/hardware/display/include/display_common.h b/hardware/display/include/display_common.h index ae6fefa..18a6e40 100644 --- a/hardware/display/include/display_common.h +++ b/hardware/display/include/display_common.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -38,11 +38,16 @@ extern "C" { #define __FILENAME__ (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1) : __FILE__) +#ifndef DISPLAY_DEBUGLOG_SWITCH +#define DISPLAY_DEBUGLOG_SWITCH 0 +#endif #ifndef DISPLAY_DEBUGLOG #define DISPLAY_DEBUGLOG(format, ...) \ do { \ + if (DISPLAY_DEBUGLOG_SWITCH) { \ HILOG_DEBUG(LOG_CORE, "[%{public}s@%{public}s:%{public}d] " format "\n", __FUNCTION__, __FILENAME__, __LINE__, \ ##__VA_ARGS__); \ + } \ } while (0) #endif diff --git a/hardware/display/src/display_device/drm_connector.cpp b/hardware/display/src/display_device/drm_connector.cpp index 3e13595..cf79778 100644 --- a/hardware/display/src/display_device/drm_connector.cpp +++ b/hardware/display/src/display_device/drm_connector.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -125,7 +125,7 @@ int32_t DrmConnector::SetBrightness(uint32_t level) if (brFd <= 0) { brFd = open("/sys/class/backlight/backlight/brightness", O_RDWR); if (brFd < 0) { - DISPLAY_LOGE("oepn Brightness file failed\n"); + DISPLAY_LOGE("open brightness file failed\n"); return DISPLAY_NOT_SUPPORT; } } diff --git a/hardware/display/src/display_device/hdi_drm_composition.cpp b/hardware/display/src/display_device/hdi_drm_composition.cpp old mode 100755 new mode 100644 index 4dc3148..d23bcf2 --- a/hardware/display/src/display_device/hdi_drm_composition.cpp +++ b/hardware/display/src/display_device/hdi_drm_composition.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -61,22 +61,22 @@ int32_t HdiDrmComposition::SetCrtcProperty(DrmPlane &drmPlane, int ret; ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropCrtc_xId(), 0); - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropCrtc_xId %{public}d, crop.x %{public}d", drmPlane.GetId(), + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropCrtc_xId %{public}d, crop.x %{public}d", drmPlane.GetId(), drmPlane.GetPropCrtc_xId(), 0); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropCrtc_yId(), 0); - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropCrtc_yId %{public}d, crop.y %{public}d", drmPlane.GetId(), + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropCrtc_yId %{public}d, crop.y %{public}d", drmPlane.GetId(), drmPlane.GetPropCrtc_yId(), 0); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropCrtc_wId(), bufferW); - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropCrtc_wId %{public}d, crop.w %{public}d", drmPlane.GetId(), + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropCrtc_wId %{public}d, crop.w %{public}d", drmPlane.GetId(), drmPlane.GetPropCrtc_wId(), bufferW); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropCrtc_hId(), bufferH); - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropCrtc_hId %{public}d, crop.h %{public}d", drmPlane.GetId(), + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropCrtc_hId %{public}d, crop.h %{public}d", drmPlane.GetId(), drmPlane.GetPropCrtc_xId(), bufferH); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); @@ -91,25 +91,25 @@ int32_t HdiDrmComposition::SetSrcProperty(DrmPlane &drmPlane, int ret; ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropSrc_xId(), 0<<16); // 16:shift left 16 bits - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropSrc_xId %{public}d, displayRect.x %{public}d", drmPlane.GetId(), - drmPlane.GetPropSrc_xId(), 0); + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropSrc_xId %{public}d, displayRect.x %{public}d", + drmPlane.GetId(), drmPlane.GetPropSrc_xId(), 0); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropSrc_yId(), 0<<16); // 16:shift left 16 bits - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropSrc_yId %{public}d, displayRect.y %{public}d", drmPlane.GetId(), - drmPlane.GetPropSrc_yId(), 0); + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropSrc_yId %{public}d, displayRect.y %{public}d", + drmPlane.GetId(), drmPlane.GetPropSrc_yId(), 0); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropSrc_wId(), bufferW<<16); // 16:shift left 16 bits - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropCrtc_wId %{public}d, displayRect.w %{public}d", + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropCrtc_wId %{public}d, displayRect.w %{public}d", drmPlane.GetId(), drmPlane.GetPropSrc_wId(), bufferW); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropSrc_hId(), bufferH<<16); // 16:shift left 16 bits - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropSrc_hId %{public}d, displayRect.h %{public}d", drmPlane.GetId(), - drmPlane.GetPropSrc_hId(), bufferH); + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropSrc_hId %{public}d, displayRect.h %{public}d", + drmPlane.GetId(), drmPlane.GetPropSrc_hId(), bufferH); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the fb planeid fialed errno : %{public}d", errno)); return DISPLAY_SUCCESS; @@ -129,7 +129,7 @@ int32_t HdiDrmComposition::ApplyPlane(HdiDrmLayer &layer, DISPLAY_DEBUGLOG(); if (propId != 0) { - DISPLAY_LOGI("set the fence in prop"); + DISPLAY_DEBUGLOG("set the fence in prop"); if (fenceFd >= 0) { ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), propId, fenceFd); DISPLAY_DEBUGLOG("set the IfenceProp plane id %{public}d, propId %{public}d, fenceFd %{public}d", @@ -145,8 +145,8 @@ int32_t HdiDrmComposition::ApplyPlane(HdiDrmLayer &layer, DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set Src fialed errno : %{public}d", errno)); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropZposId(), layer.GetZorder()); - DISPLAY_LOGI("set the fb planeid %{public}d, GetPropZposId %{public}d, zpos %{public}d", drmPlane.GetId(), - drmPlane.GetPropZposId(), layer.GetZorder()); + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, GetPropZposId %{public}d, zpos %{public}d", + drmPlane.GetId(), drmPlane.GetPropZposId(), layer.GetZorder()); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the zpos fialed errno : %{public}d", errno)); // set fb id @@ -154,14 +154,14 @@ int32_t HdiDrmComposition::ApplyPlane(HdiDrmLayer &layer, DISPLAY_CHK_RETURN((gemBuffer == nullptr), DISPLAY_FAILURE, DISPLAY_LOGE("current gemBuffer is nullptr")); DISPLAY_CHK_RETURN((!gemBuffer->IsValid()), DISPLAY_FAILURE, DISPLAY_LOGE("the DrmGemBuffer is invalid")); ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropFbId(), gemBuffer->GetFbId()); - DISPLAY_DEBUGLOG("set the fb planeid %{public}d, propId %{public}d, fbId %{public}d", drmPlane.GetId(), - drmPlane.GetPropFbId(), gemBuffer->GetFbId()); + DISPLAY_DEBUGLOG("set the fb planeid %{public}d, propId %{public}d, fbId %{public}d", + drmPlane.GetId(), drmPlane.GetPropFbId(), gemBuffer->GetFbId()); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set fb id fialed errno : %{public}d", errno)); // set crtc id ret = drmModeAtomicAddProperty(pset, drmPlane.GetId(), drmPlane.GetPropCrtcId(), mCrtc->GetId()); - DISPLAY_DEBUGLOG("set the crtc planeId %{public}d, propId %{public}d, crtcId %{public}d", drmPlane.GetId(), - drmPlane.GetPropCrtcId(), mCrtc->GetId()); + DISPLAY_DEBUGLOG("set the crtc planeId %{public}d, propId %{public}d, crtcId %{public}d", + drmPlane.GetId(), drmPlane.GetPropCrtcId(), mCrtc->GetId()); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set crtc id fialed errno : %{public}d", errno)); return DISPLAY_SUCCESS; } @@ -169,7 +169,7 @@ int32_t HdiDrmComposition::ApplyPlane(HdiDrmLayer &layer, int32_t HdiDrmComposition::UpdateMode(std::unique_ptr &modeBlock, drmModeAtomicReq &pset) { // set the mode - DISPLAY_LOGI(); + DISPLAY_DEBUGLOG(); if (mCrtc->NeedModeSet()) { modeBlock = mConnector->GetModeBlockFromId(mCrtc->GetActiveModeId()); if ((modeBlock != nullptr) && (modeBlock->GetBlockId() != DRM_INVALID_ID)) { @@ -182,13 +182,13 @@ int32_t HdiDrmComposition::UpdateMode(std::unique_ptr &modeBlock, // set the mode id DISPLAY_DEBUGLOG("set the mode"); ret = drmModeAtomicAddProperty(&pset, mCrtc->GetId(), mCrtc->GetModePropId(), modeBlock->GetBlockId()); - DISPLAY_LOGI("set the mode planeId %{public}d, propId %{public}d, GetBlockId: %{public}d", mCrtc->GetId(), - mCrtc->GetModePropId(), modeBlock->GetBlockId()); + DISPLAY_DEBUGLOG("set the mode planeId %{public}d, propId %{public}d, GetBlockId: %{public}d", + mCrtc->GetId(), mCrtc->GetModePropId(), modeBlock->GetBlockId()); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("can not add the mode prop errno %{public}d", errno)); ret = drmModeAtomicAddProperty(&pset, mConnector->GetId(), mConnector->GetPropCrtcId(), mCrtc->GetId()); - DISPLAY_LOGI("set the connector id: %{public}d, propId %{public}d, crtcId %{public}d", mConnector->GetId(), - mConnector->GetPropCrtcId(), mCrtc->GetId()); + DISPLAY_DEBUGLOG("set the connector id: %{public}d, propId %{public}d, crtcId %{public}d", + mConnector->GetId(), mConnector->GetPropCrtcId(), mCrtc->GetId()); DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("can not add the crtc id prop %{public}d", errno)); } @@ -203,7 +203,7 @@ int32_t HdiDrmComposition::RemoveUnusePlane(drmModeAtomicReqPtr pset) for (uint32_t j = 0; j < mPlanes.size(); j++) { auto &drmPlane = mPlanes[j]; if ((static_cast(drmPlane->GetWinType()) & mCrtc->GetPlaneMask()) && drmPlane->GetPipe() == 0) { - DISPLAY_LOGI("no used plane %{public}s id %{public}d", drmPlane->GetName().c_str(), drmPlane->GetId()); + DISPLAY_DEBUGLOG("no used plane %{public}s id %{public}d", drmPlane->GetName().c_str(), drmPlane->GetId()); ret = drmModeAtomicAddProperty(pset, drmPlane->GetId(), drmPlane->GetPropFbId(), 0); ret = drmModeAtomicAddProperty(pset, drmPlane->GetId(), drmPlane->GetPropFbId(), 0); drmPlane->UnBindPipe(); @@ -221,7 +221,7 @@ int32_t HdiDrmComposition::FindPlaneAndApply(drmModeAtomicReqPtr pset) for (uint32_t j = 0; j < mPlanes.size(); j++) { auto &drmPlane = mPlanes[j]; if (drmPlane->GetPipe() != 0 && drmPlane->GetPipe() != (1 << mCrtc->GetPipe())) { - DISPLAY_LOGI("plane %{public}d used pipe %{public}d crtc pipe %{public}d", drmPlane->GetId(), + DISPLAY_DEBUGLOG("plane %{public}d used pipe %{public}d crtc pipe %{public}d", drmPlane->GetId(), drmPlane->GetPipe(), mCrtc->GetPipe()); continue; } @@ -229,7 +229,7 @@ int32_t HdiDrmComposition::FindPlaneAndApply(drmModeAtomicReqPtr pset) if (!(static_cast(drmPlane->GetWinType()) & mCrtc->GetPlaneMask())) { continue; } - DISPLAY_LOGI("use plane %{public}d WinType %{public}x crtc %{public}d PlaneMask %{public}x", + DISPLAY_DEBUGLOG("use plane %{public}d WinType %{public}x crtc %{public}d PlaneMask %{public}x", drmPlane->GetId(), drmPlane->GetWinType(), mCrtc->GetId(), mCrtc->GetPlaneMask()); if (drmPlane->GetCrtcId() == mCrtc->GetId() || drmPlane->GetCrtcId() == 0) { @@ -254,7 +254,7 @@ int32_t HdiDrmComposition::Apply(bool modeSet) std::unique_ptr modeBlock; int drmFd = mDrmDevice->GetDrmFd(); - DISPLAY_LOGI("mPlane size: %{public}zd mCompLayers size: %{public}zd", mPlanes.size(), mCompLayers.size()); + DISPLAY_DEBUGLOG("mPlane size: %{public}zd mCompLayers size: %{public}zd", mPlanes.size(), mCompLayers.size()); DISPLAY_CHK_RETURN((mPlanes.size() < mCompLayers.size()), DISPLAY_FAILURE, DISPLAY_LOGE("plane not enough")); drmModeAtomicReqPtr pset = drmModeAtomicAlloc(); DISPLAY_CHK_RETURN((pset == nullptr), DISPLAY_NULL_PTR, @@ -270,8 +270,8 @@ int32_t HdiDrmComposition::Apply(bool modeSet) DISPLAY_CHK_RETURN((ret < 0), DISPLAY_FAILURE, DISPLAY_LOGE("set the outfence property of crtc failed ")); // set the plane info. - DISPLAY_LOGI("mCompLayers size %{public}zd", mCompLayers.size()); - DISPLAY_LOGI("crtc id %{public}d connect id %{public}d encoder id %{public}d", mCrtc->GetId(), + DISPLAY_DEBUGLOG("mCompLayers size %{public}zd", mCompLayers.size()); + DISPLAY_DEBUGLOG("crtc id %{public}d connect id %{public}d encoder id %{public}d", mCrtc->GetId(), mConnector->GetId(), mConnector->GetEncoderId()); /* Bind the plane not used by other crtcs to the crtc. */ diff --git a/hardware/display/src/display_device/hdi_drm_layer.cpp b/hardware/display/src/display_device/hdi_drm_layer.cpp index 5cb701f..e5d70c7 100644 --- a/hardware/display/src/display_device/hdi_drm_layer.cpp +++ b/hardware/display/src/display_device/hdi_drm_layer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -64,7 +64,7 @@ DrmGemBuffer::~DrmGemBuffer() struct drm_gem_close gemClose = { 0 }; gemClose.handle = mGemHandle; if (drmIoctl(mDrmFd, DRM_IOCTL_GEM_CLOSE, &gemClose)) { - DISPLAY_LOGE("can not free gem handle %{public}d errno : %{public}d", mGemHandle, errno); + DISPLAY_DEBUGLOG("can not free gem handle %{public}d errno : %{public}d", mGemHandle, errno); } } } diff --git a/hardware/display/src/display_gfx/display_gfx.c b/hardware/display/src/display_gfx/display_gfx.c index e6105d7..931ea76 100644 --- a/hardware/display/src/display_gfx/display_gfx.c +++ b/hardware/display/src/display_gfx/display_gfx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Rockchip Electronics Co., Ltd. + * Copyright (c) 2021-2022 Rockchip Electronics Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -178,7 +178,7 @@ int32_t rkFillRect(ISurface *iSurface, IRect *rect, uint32_t color, GfxOpt *opt) DISPLAY_LOGE("source iSurface address error"); return DISPLAY_PARAM_ERR; } - DISPLAY_LOGE("gfx vir %{public}p phy 0x%{public}x fd %{public}d", dst.vir_addr, (int32_t)dst.phy_addr, dst.fd); + DISPLAY_DEBUGLOG("gfx vir %{public}p phy 0x%{public}x fd %{public}d", dst.vir_addr, (int32_t)dst.phy_addr, dst.fd); dst.width = iSurface->width; dst.height = iSurface->height; dst.wstride = ALIGN_UP(iSurface->width, 16); @@ -346,10 +346,10 @@ int32_t doFlit(ISurface *srcSurface, IRect *srcRect, ISurface *dstSurface, IRect return DISPLAY_PARAM_ERR; } - DISPLAY_LOGE("gfx src fd %{public}d, w %{public}d, h %{publuc}d, sw %{public}d sh %{public}d vir %{public}p", + DISPLAY_DEBUGLOG("gfx src fd %{public}d, w %{public}d, h %{publuc}d, sw %{public}d sh %{public}d vir %{public}p", (int32_t)srcSurface->phyAddr, srcSurface->width, srcSurface->height, ALIGN_UP(srcSurface->width, 16), ALIGN_UP(srcSurface->height, 16), srcRgaBuffer.vir_addr); - DISPLAY_LOGE("gfx dst fd %{public}d, w %{public}d, h %{public}d, sw %{public}d sh %{public}d vir %{public}p", + DISPLAY_DEBUGLOG("gfx dst fd %{public}d, w %{public}d, h %{public}d, sw %{public}d sh %{public}d vir %{public}p", (int32_t)dstSurface->phyAddr, dstSurface->width, dstSurface->height, ALIGN_UP(dstSurface->width, 16), ALIGN_UP(dstSurface->height, 16), dstRgaBuffer.vir_addr); @@ -510,6 +510,6 @@ int32_t GfxUninitialize(GfxFuncs *funcs) { CHECK_NULLPOINTER_RETURN_VALUE(funcs, DISPLAY_NULL_PTR); free(funcs); - DISPLAY_LOGI("%s: gfx uninitialize success", __func__); + DISPLAY_DEBUGLOG("%s: gfx uninitialize success", __func__); return DISPLAY_SUCCESS; } diff --git a/hardware/display/src/display_gralloc/hi_gbm.c b/hardware/display/src/display_gralloc/hi_gbm.c index 0c3c790..5aac095 100644 --- a/hardware/display/src/display_gralloc/hi_gbm.c +++ b/hardware/display/src/display_gralloc/hi_gbm.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -131,12 +131,12 @@ struct gbm_bo *hdi_gbm_bo_create(struct gbm_device *gbm, uint32_t width, uint32_ dumb.flags = 0; dumb.bpp = fmtInfo->bitsPerPixel; ret = drmIoctl(gbm->fd, DRM_IOCTL_MODE_CREATE_DUMB, &dumb); - DISPLAY_LOGI("fmt 0x%{public}x create dumb width: %{public}d height: %{public}d bpp: %{public}u pitch %{public}d " + DISPLAY_DEBUGLOG("fmt 0x%{public}x create dumb width: %{public}d height: %{public}d bpp: %{public}u pitch %{public}d " "size %{public}llu", format, dumb.width, dumb.height, dumb.bpp, dumb.pitch, dumb.size); DISPLAY_CHK_RETURN((ret != 0), NULL, DISPLAY_LOGE("DRM_IOCTL_MODE_CREATE_DUMB failed errno %{public}d", errno)); InitGbmBo(bo, &dumb); - DISPLAY_LOGI( + DISPLAY_DEBUGLOG( "fmt 0x%{public}x create dumb width: %{public}d height: %{public}d stride %{public}d size %{public}u", format, bo->width, bo->height, bo->stride, bo->size); return bo; -- Gitee