From 649f8c0d9aa08d8c9a04cc1a1412cdf2a4836bca Mon Sep 17 00:00:00 2001 From: Huang Jiachai Date: Thu, 7 Jul 2016 15:39:07 +0800 Subject: [PATCH] video: rockchip: rk fb: add debug message Change-Id: I9af8c17dd95fbf7c9ce44d9cb912071f05fd6014 Signed-off-by: Huang Jiachai --- drivers/video/rockchip/rk_fb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 009898c5bf80..ee0140cec71e 100644 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -2229,8 +2229,10 @@ static int rk_fb_set_win_buffer(struct fb_info *info, ion_import_dma_buf(rk_fb->ion_client, ion_fd); if (IS_ERR(hdl)) { - pr_info("%s: Could not import handle:" - " %ld\n", __func__, (long)hdl); + pr_info("%s: win[%d]area[%d] can't import handle\n", + __func__, win_par->win_id, i); + pr_info("fd: %d, hdl: 0x%p, ion_client: 0x%p\n", + ion_fd, hdl, rk_fb->ion_client); return -EINVAL; break; } @@ -2650,6 +2652,7 @@ err_null_frame: win_data->ret_fence_fd = -1; pr_info("win num = %d,null frame\n", regs->win_num); err2: + rk_fb_config_debug(dev_drv, win_data, regs, 0); kfree(regs); mutex_unlock(&dev_drv->output_lock); -- 2.34.1