media: v4l2-dv-timings.c: fix format string
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 9 Sep 2019 07:16:27 +0000 (04:16 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 19:54:03 +0000 (16:54 -0300)
It should be "%u.%02u" instead of "%u.%u".

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Bard Winther <bwinther@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-dv-timings.c

index 4f23e939ead0b39712d16194026cf03a8b9242b7..0607a5d0d05128158ce044af1bdd1c0fcb7905f1 100644 (file)
@@ -293,7 +293,7 @@ void v4l2_print_dv_timings(const char *dev_prefix, const char *prefix,
        if (prefix == NULL)
                prefix = "";
 
-       pr_info("%s: %s%ux%u%s%u.%u (%ux%u)\n", dev_prefix, prefix,
+       pr_info("%s: %s%ux%u%s%u.%02u (%ux%u)\n", dev_prefix, prefix,
                bt->width, bt->height, bt->interlaced ? "i" : "p",
                fps / 100, fps % 100, htot, vtot);