Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Guennadi Liakhovetski and committed by
Mauro Carvalho Chehab
2bcccaec 72f28744

+3 -3
+3 -3
drivers/media/platform/soc_camera/mx3_camera.c
··· 672 672 fmt = soc_mbus_get_fmtdesc(code); 673 673 if (!fmt) { 674 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 676 return 0; 677 677 } 678 678 ··· 688 688 xlate->host_fmt = &mx3_camera_formats[0]; 689 689 xlate->code = code; 690 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 692 mx3_camera_formats[0].name, code); 693 693 } 694 694 break; ··· 698 698 xlate->host_fmt = &mx3_camera_formats[1]; 699 699 xlate->code = code; 700 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 702 mx3_camera_formats[1].name, code); 703 703 } 704 704 break;