From patchwork Tue Jul 30 12:25:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2835599 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B2BB3C0319 for ; Tue, 30 Jul 2013 12:26:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 97F2820306 for ; Tue, 30 Jul 2013 12:26:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4DFC20347 for ; Tue, 30 Jul 2013 12:26:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753047Ab3G3M01 (ORCPT ); Tue, 30 Jul 2013 08:26:27 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:50902 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753385Ab3G3MZk (ORCPT ); Tue, 30 Jul 2013 08:25:40 -0400 Received: from axis700.grange (dslb-094-220-155-198.pools.arcor-ip.net [94.220.155.198]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0LdmXT-1UL9Xd2w7P-00j1UP; Tue, 30 Jul 2013 14:25:38 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 3E65A40BB7 for ; Tue, 30 Jul 2013 14:25:38 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1V48zh-0003vF-Qm for linux-media@vger.kernel.org; Tue, 30 Jul 2013 14:25:37 +0200 From: Guennadi Liakhovetski To: linux-media@vger.kernel.org Subject: [PATCH 2/6] V4L2: mx3_camera: print V4L2_MBUS_FMT_* codes in hexadecimal format Date: Tue, 30 Jul 2013 14:25:34 +0200 Message-Id: <1375187137-15045-4-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1375187137-15045-1-git-send-email-g.liakhovetski@gmx.de> References: <1375187137-15045-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:T4SHORtt9++j3Ncbn1IOz7asvFqZXRRTA+TbTivV6HK nuflDbYbNb0LhmownNRCS/KsGdsPoWuz9RZrmvreR2g+nl4N5S el7OCBSviuepzj+nXFDTMTa6WeDjZOtRVPM56tPL6oODrja6jf gqInNMFQqUCcXCPs++2kCzq43SMLL7t5RVCNqPreQCVIP3jEj+ +4JrvfaZkfJXrLojoOI01YYLQP419EXdxcA6MJPr1ni2MTHcrF KBj+0a5WocV1KgiY26uKmgT4Jt3IKTqofLWW0ywr7DEPudF2yT rG1EZdqZtlHnfnNgYoF7ZIBPY+k1wXSNFdK2yUSBPLPIwKhGmT frc6q2ZmzmtU10W1AXsvz27lHUaGR4efZYOTDY8dP2DIecYqdP 8fmgqSUxV5isQ== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/media/platform/soc_camera/mx3_camera.c | 6 +++--- 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 e526096..83592e4 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 fmt = soc_mbus_get_fmtdesc(code); if (!fmt) { dev_warn(icd->parent, - "Unsupported format code #%u: %d\n", idx, code); + "Unsupported format code #%u: 0x%x\n", idx, code); return 0; } @@ -688,7 +688,7 @@ static int mx3_camera_get_formats(struct soc_camera_device *icd, unsigned int id xlate->host_fmt = &mx3_camera_formats[0]; xlate->code = code; xlate++; - dev_dbg(dev, "Providing format %s using code %d\n", + dev_dbg(dev, "Providing format %s using code 0x%x\n", mx3_camera_formats[0].name, code); } break; @@ -698,7 +698,7 @@ static int mx3_camera_get_formats(struct soc_camera_device *icd, unsigned int id xlate->host_fmt = &mx3_camera_formats[1]; xlate->code = code; xlate++; - dev_dbg(dev, "Providing format %s using code %d\n", + dev_dbg(dev, "Providing format %s using code 0x%x\n", mx3_camera_formats[1].name, code); } break;