]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] exynos-gsc: change spamming try_fmt log message to debug
authorJavier Martinez Canillas <javier@osg.samsung.com>
Fri, 30 Sep 2016 21:16:41 +0000 (18:16 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 18:26:00 +0000 (16:26 -0200)
The driver try_fmt handler prints a message each time that the image
size has been changed due the maximum and minimum width and height.

Since user-space can try different format and sizes, this logs a lot
of unnecessary messages. Change the message log level to debug and
while being there, also add a new line to the message.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos-gsc/gsc-core.c

index 787bd16c19e55324c1c069c61423d4d58925df64..fac0c0246ad46c90f00cecd7f6f5eabbbcad9a9f 100644 (file)
@@ -441,7 +441,7 @@ int gsc_try_fmt_mplane(struct gsc_ctx *ctx, struct v4l2_format *f)
        v4l_bound_align_image(&pix_mp->width, min_w, max_w, mod_x,
                &pix_mp->height, min_h, max_h, mod_y, 0);
        if (tmp_w != pix_mp->width || tmp_h != pix_mp->height)
-               pr_info("Image size has been modified from %dx%d to %dx%d",
+               pr_debug("Image size has been modified from %dx%d to %dx%d\n",
                         tmp_w, tmp_h, pix_mp->width, pix_mp->height);
 
        pix_mp->num_planes = fmt->num_planes;