diff mbox series

[V4L-UTILS] Fix print formatting warning for clang.

Message ID 540157d4-36af-0b3d-cf15-82c5f0853e92@selasky.org
State New
Headers show
Series [V4L-UTILS] Fix print formatting warning for clang. | expand

Commit Message

Hans Petter Selasky April 17, 2020, 12:01 p.m. UTC
pixelclock is 64-bit and make sure the else case is also 64-bit.

Signed-off-by: Hans Petter Selasky <hps@selasky.org>
---
  utils/media-ctl/media-ctl.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)


  		printf(" stds:");
diff mbox series

Patch

diff --git a/utils/media-ctl/media-ctl.c b/utils/media-ctl/media-ctl.c
index 6661b487..455b92a3 100644
--- a/utils/media-ctl/media-ctl.c
+++ b/utils/media-ctl/media-ctl.c
@@ -213,7 +213,7 @@  static void v4l2_subdev_print_dv_timings(const 
struct v4l2_dv_timings *timings,

  		printf(" %ux%u%s%llu (%ux%u)",
  		       bt->width, bt->height, bt->interlaced ? "i" : "p",
-		       (htotal * vtotal) > 0 ? (bt->pixelclock / (htotal * vtotal)) : 0,
+		       (htotal * vtotal) > 0 ? (bt->pixelclock / (htotal * vtotal)) : 
0ULL,
  		       htotal, vtotal);