* [PATCH] [V4L-UTILS] Fix print formatting warning for clang.
@ 2020-04-17 12:01 Hans Petter Selasky
0 siblings, 0 replies; only message in thread
From: Hans Petter Selasky @ 2020-04-17 12:01 UTC (permalink / raw)
To: Linux Media Mailing List, Hans Verkuil
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(-)
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);
printf(" stds:");
--
2.26.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-17 12:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 12:01 [PATCH] [V4L-UTILS] Fix print formatting warning for clang Hans Petter Selasky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).