aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2013-07-30 01:53:15 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-08-18 08:05:43 -0400
commit2bcccaec9937a49a65c258789d33ecc5ee1f8fff (patch)
tree9bd11a17b0da41db12d7120e834fd0865bd0d7ac
parent72f2874411dff8d8ec424ecf7e2d1a3ebe0302f0 (diff)
[media] V4L2: mx3_camera: print V4L2_MBUS_FMT_* codes in hexadecimal format
V4L2_MBUS_FMT_* codes are defined in v4l2-mediabus.h as hexadecimal constants. Print them in the same form for easier recognition. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/platform/soc_camera/mx3_camera.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c
index e52609652690..83592e4ae532 100644
--- a/drivers/media/platform/soc_camera/mx3_camera.c
+++ b/drivers/media/platform/soc_camera/mx3_camera.c
@@ -672,7 +672,7 @@ static int mx3_camera_get_formats(struct soc_camera_device *icd, unsigned int id
672 fmt = soc_mbus_get_fmtdesc(code); 672 fmt = soc_mbus_get_fmtdesc(code);
673 if (!fmt) { 673 if (!fmt) {
674 dev_warn(icd->parent, 674 dev_warn(icd->parent,
675 "Unsupported format code #%u: %d\n", idx, code); 675 "Unsupported format code #%u: 0x%x\n", idx, code);
676 return 0; 676 return 0;
677 } 677 }
678 678
@@ -688,7 +688,7 @@ static int mx3_camera_get_formats(struct soc_camera_device *icd, unsigned int id
688 xlate->host_fmt = &mx3_camera_formats[0]; 688 xlate->host_fmt = &mx3_camera_formats[0];
689 xlate->code = code; 689 xlate->code = code;
690 xlate++; 690 xlate++;
691 dev_dbg(dev, "Providing format %s using code %d\n", 691 dev_dbg(dev, "Providing format %s using code 0x%x\n",
692 mx3_camera_formats[0].name, code); 692 mx3_camera_formats[0].name, code);
693 } 693 }
694 break; 694 break;
@@ -698,7 +698,7 @@ static int mx3_camera_get_formats(struct soc_camera_device *icd, unsigned int id
698 xlate->host_fmt = &mx3_camera_formats[1]; 698 xlate->host_fmt = &mx3_camera_formats[1];
699 xlate->code = code; 699 xlate->code = code;
700 xlate++; 700 xlate++;
701 dev_dbg(dev, "Providing format %s using code %d\n", 701 dev_dbg(dev, "Providing format %s using code 0x%x\n",
702 mx3_camera_formats[1].name, code); 702 mx3_camera_formats[1].name, code);
703 } 703 }
704 break; 704 break;