drm/panel: s6e8aa0: Fix build warnings on 64-bit
authorThierry Reding <treding@nvidia.com>
Fri, 7 Nov 2014 13:42:16 +0000 (14:42 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 7 Nov 2014 14:40:36 +0000 (15:40 +0100)
The %* format specifier expects an integer, which works fine with size_t
arguments on 32-bit because the types match. However on 64-bit, size_t
is typedef'd to unsigned long and will cause a build warning.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/panel/panel-s6e8aa0.c

index 6427aa187735291ef8998f8bbd1b5409d4a2752c..96f4476609b08062c91fa5c4b89274e1fe5e1b8c 100644 (file)
@@ -143,8 +143,8 @@ static void s6e8aa0_dcs_write(struct s6e8aa0 *ctx, const void *data, size_t len)
 
        ret = mipi_dsi_dcs_write(dsi, data, len);
        if (ret < 0) {
-               dev_err(ctx->dev, "error %zd writing dcs seq: %*ph\n", ret, len,
-                       data);
+               dev_err(ctx->dev, "error %zd writing dcs seq: %*ph\n", ret,
+                       (int)len, data);
                ctx->error = ret;
        }
 }