]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/msm/dsi: Fix a couple more 64-bit build warnings
authorStephane Viau <sviau@codeaurora.org>
Thu, 30 Apr 2015 14:39:26 +0000 (10:39 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 14 May 2015 15:19:51 +0000 (11:19 -0400)
Avoid such errors at compilation time:
format '%d' expects argument of type 'int', but argument 3 has type 'size_t'

Signed-off-by: Stephane Viau <sviau@codeaurora.org>
drivers/gpu/drm/msm/dsi/dsi_host.c

index 956b22492c9a8f81db4ad38abc1a4edbb477bd38..28e7127921595685ed09c99d6093fc9cc0e4a955 100644 (file)
@@ -1023,7 +1023,7 @@ static int dsi_short_read1_resp(u8 *buf, const struct mipi_dsi_msg *msg)
                *data = buf[1]; /* strip out dcs type */
                return 1;
        } else {
-               pr_err("%s: read data does not match with rx_buf len %d\n",
+               pr_err("%s: read data does not match with rx_buf len %zu\n",
                        __func__, msg->rx_len);
                return -EINVAL;
        }
@@ -1040,7 +1040,7 @@ static int dsi_short_read2_resp(u8 *buf, const struct mipi_dsi_msg *msg)
                data[1] = buf[2];
                return 2;
        } else {
-               pr_err("%s: read data does not match with rx_buf len %d\n",
+               pr_err("%s: read data does not match with rx_buf len %zu\n",
                        __func__, msg->rx_len);
                return -EINVAL;
        }