[PATCH] drm/i2c: tda998x: Use '%zd' for printing 'ssize_t' format
Fabio Estevam
fabio.estevam at freescale.com
Mon May 25 06:17:25 PDT 2015
Use '%zd' for printing 'ssize_t' format in order to fix the following
build warning on ARM64:
drivers/gpu/drm/i2c/tda998x_drv.c: In function 'tda998x_write_avi':
drivers/gpu/drm/i2c/tda998x_drv.c:647:3: warning: format '%d' expects
argument of type 'int', but argument 3 has type 'ssize_t' [-Wformat=]
Reported-by: Olof's autobuilder <build at lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
drivers/gpu/drm/i2c/tda998x_drv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c
index 011e1ca..d5dc8aa 100644
--- a/drivers/gpu/drm/i2c/tda998x_drv.c
+++ b/drivers/gpu/drm/i2c/tda998x_drv.c
@@ -644,7 +644,8 @@ tda998x_write_avi(struct tda998x_priv *priv, struct drm_display_mode *mode)
len = hdmi_avi_infoframe_pack(&frame, buf, sizeof(buf));
if (len < 0) {
- dev_err(&priv->hdmi->dev, "hdmi_avi_infoframe_pack() failed: %d\n", len);
+ dev_err(&priv->hdmi->dev, "hdmi_avi_infoframe_pack() failed: %zd\n",
+ len);
return;
}
--
1.9.1
More information about the dri-devel
mailing list