drm/msm: Move FB debug prints to drm_dbg_state()
These are verbose prints that tell us about the framebuffer state. Let's move them to drm_dbg_state() so that they're only printed if we're interested in verbose state logging while drm debugging. Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Cc: Abhinav Kumar <abhinavk@codeaurora.org> Cc: Kuogee Hsieh <khsieh@codeaurora.org> Cc: aravindh@codeaurora.org Cc: Sean Paul <sean@poorly.run> Signed-off-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/20210430193104.1770538-5-swboyd@chromium.org Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
e45b40ab9b
commit
7cb017db18
1 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ int msm_framebuffer_prepare(struct drm_framebuffer *fb,
|
||||||
|
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
ret = msm_gem_get_and_pin_iova(fb->obj[i], aspace, &iova);
|
ret = msm_gem_get_and_pin_iova(fb->obj[i], aspace, &iova);
|
||||||
DBG("FB[%u]: iova[%d]: %08llx (%d)", fb->base.id, i, iova, ret);
|
drm_dbg_state(fb->dev, "FB[%u]: iova[%d]: %08llx (%d)", fb->base.id, i, iova, ret);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -140,8 +140,8 @@ static struct drm_framebuffer *msm_framebuffer_init(struct drm_device *dev,
|
||||||
const struct msm_format *format;
|
const struct msm_format *format;
|
||||||
int ret, i, n;
|
int ret, i, n;
|
||||||
|
|
||||||
DBG("create framebuffer: dev=%p, mode_cmd=%p (%dx%d@%4.4s)",
|
drm_dbg_state(dev, "create framebuffer: mode_cmd=%p (%dx%d@%4.4s)",
|
||||||
dev, mode_cmd, mode_cmd->width, mode_cmd->height,
|
mode_cmd, mode_cmd->width, mode_cmd->height,
|
||||||
(char *)&mode_cmd->pixel_format);
|
(char *)&mode_cmd->pixel_format);
|
||||||
|
|
||||||
n = info->num_planes;
|
n = info->num_planes;
|
||||||
|
@ -194,7 +194,7 @@ static struct drm_framebuffer *msm_framebuffer_init(struct drm_device *dev,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
DBG("create: FB ID: %d (%p)", fb->base.id, fb);
|
drm_dbg_state(dev, "create: FB ID: %d (%p)", fb->base.id, fb);
|
||||||
|
|
||||||
return fb;
|
return fb;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue