video: rockchip: rk fb: add debug message
authorHuang Jiachai <hjc@rock-chips.com>
Thu, 7 Jul 2016 07:39:07 +0000 (15:39 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Fri, 8 Jul 2016 02:35:07 +0000 (10:35 +0800)
Change-Id: I9af8c17dd95fbf7c9ce44d9cb912071f05fd6014
Signed-off-by: Huang Jiachai <hjc@rock-chips.com>
drivers/video/rockchip/rk_fb.c

index 009898c5bf80b0f8e1b67cf210e62247ee416f66..ee0140cec71e5a8a22fe7299ad2465d89ffa9c6f 100644 (file)
@@ -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);