drm/rockchip: dw-mipi-dsi: include bad value in error message
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:50 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:51 +0000 (14:48 -0500)
As an aid to debugging.

Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-8-john@metanate.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c

index f55010312f259d9a06dfff4c10b48cac8ea56d19..374b18c550fd3de2b78e53e0b65d30480e5221ee 100644 (file)
@@ -646,7 +646,8 @@ static ssize_t dw_mipi_dsi_host_transfer(struct mipi_dsi_host *host,
                ret = dw_mipi_dsi_dcs_long_write(dsi, msg);
                break;
        default:
-               dev_err(dsi->dev, "unsupported message type\n");
+               dev_err(dsi->dev, "unsupported message type 0x%02x\n",
+                       msg->type);
                ret = -EINVAL;
        }