Skip to content

Commit

Permalink
drm/i2c: tda998x: fix compiler warning for ssize_t
Browse files Browse the repository at this point in the history
Stephen Rothwell reports that he sees a compiler warning on x86_64:

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=]
   dev_err(&priv->hdmi->dev, "hdmi_avi_infoframe_pack() failed: %d\n", len);
   ^
Fix this by using the appropriate length modifier.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed May 20, 2015
1 parent 8c7a075 commit 5296b7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i2c/tda998x_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,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;
}

Expand Down

0 comments on commit 5296b7f

Please sign in to comment.