From patchwork Thu Aug 8 14:52: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: 2841264 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DBF119F294 for ; Thu, 8 Aug 2013 14:56:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AD5B20499 for ; Thu, 8 Aug 2013 14:56:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 65EA6204E0 for ; Thu, 8 Aug 2013 14:56:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965576Ab3HHO4X (ORCPT ); Thu, 8 Aug 2013 10:56:23 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:55592 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934267Ab3HHO4Q (ORCPT ); Thu, 8 Aug 2013 10:56:16 -0400 Received: from axis700.grange (dslb-094-221-101-140.pools.arcor-ip.net [94.221.101.140]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0MhDBR-1VTDeJ3IXZ-00MLje; Thu, 08 Aug 2013 16:56:15 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 43B9B40BB4; Thu, 8 Aug 2013 16:56:14 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1V7RdO-00065i-2T; Thu, 08 Aug 2013 16:56:14 +0200 From: Guennadi Liakhovetski To: linux-media@vger.kernel.org Cc: Guennadi Liakhovetski Subject: [PATCH 3/6] V4L2: mx3_camera: print V4L2_MBUS_FMT_* codes in hexadecimal format Date: Thu, 8 Aug 2013 16:52:34 +0200 Message-Id: <1375973557-23333-4-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1375973557-23333-1-git-send-email-g.liakhovetski@gmx.de> References: <1375973557-23333-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:h/fmyJR3eqIhWcLnet4wl5ZVRfVRZx4ejHG9jaH5kFF CJAR1hiTCcnmpCw2GKPsxmyUP6R8q7MEWt8hv4NblezLsAy800 cxfZBYgkp2oVuvpQadJXqP1zQxGNoczXiMTeA3lvkBHF57A/+u 5vCqEkmP3hFuuL6gLY/NNuBP8X0qS2lbEBYR/IkCQTSU6iC3kf Rfd9vv1duFuKBJ0Qg1ZKe7bdzMbnoLxXu0RMj2pVKbaUg0U8wq p4pLZLDnGEafwxrhtlXHEXbHVjDDijWTMG1SCWFVMow8JCOowK 4DG/Ii2o3efpWn2JtHlXurb1pCFbw1f5/BHqcEhqrXjwvINDUF uahVj5De4zygaoQ6oSu1BkuZQEX5ib2h2+dLe/yjLaDMg4hYuC HHQ6TnpivF/qA== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 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;