From: Josh Wu Date: Mon, 30 Nov 2015 09:20:15 +0000 (-0200) Subject: [media] atmel-isi: fix debug message which only show the first format X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9b4b92645c5edf16b9e77c5956e13b040ba5ed0f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] atmel-isi: fix debug message which only show the first format Correct the debug output message to show correct format. Signed-off-by: Josh Wu Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/soc_camera/atmel-isi.c b/drivers/media/platform/soc_camera/atmel-isi.c index c398b285180c..1af779ee3c74 100644 --- a/drivers/media/platform/soc_camera/atmel-isi.c +++ b/drivers/media/platform/soc_camera/atmel-isi.c @@ -795,7 +795,7 @@ static int isi_camera_get_formats(struct soc_camera_device *icd, xlate->host_fmt = &isi_camera_formats[i]; xlate->code = code.code; dev_dbg(icd->parent, "Providing format %s using code %d\n", - isi_camera_formats[0].name, code.code); + xlate->host_fmt->name, xlate->code); } break; default: