From patchwork Tue Aug 7 02:47:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devin Heitmueller X-Patchwork-Id: 1282651 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id F158FDF288 for ; Tue, 7 Aug 2012 02:48:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932587Ab2HGCsT (ORCPT ); Mon, 6 Aug 2012 22:48:19 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:52727 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932579Ab2HGCsJ (ORCPT ); Mon, 6 Aug 2012 22:48:09 -0400 Received: by mail-vc0-f174.google.com with SMTP id fk26so3432709vcb.19 for ; Mon, 06 Aug 2012 19:48:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ivs3VNpnSSwCfAKr8DQQBbYAar6LgFKs49YNLu8D8S8=; b=mbpVmgZ/dKVOEnUErUt2SMKzdHns6v71v1vb+8Ab6Aifi0oB7jYvU5/uFSf33yltno 1DERhxin4RFNyr0ekLYvEtTVv0Bh6wp9brvDHsvOR3aqD6XHqWKUGNxan6Kt4Jl9pY+n YyZrgQiL2sf/zCnbCqDufQN12H9fmx+SWb/Ui9yKepDBx4yQX7gd0ATuLT3MkdIgV33U sIyc1bVwHg9ADpeXlHtCtWD6FE2JOqa+ybiUYlBrl8RokI2Q29giBHmU1D0lU4itwJQv Ahdm9QHAcp0RoCIQxiSwrKKtW0lss+B54aRaIO9Tf/SRMOunQpqLHvgLZsiJys0OZXd6 y/ug== Received: by 10.52.97.230 with SMTP id ed6mr8396258vdb.65.1344307688616; Mon, 06 Aug 2012 19:48:08 -0700 (PDT) Received: from localhost.localdomain (pool-108-54-72-165.nycmny.fios.verizon.net. [108.54.72.165]) by mx.google.com with ESMTPS id e9sm17555638vdf.21.2012.08.06.19.48.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Aug 2012 19:48:07 -0700 (PDT) From: Devin Heitmueller To: linux-media@vger.kernel.org Cc: Devin Heitmueller Subject: [PATCH 21/24] xc5000: show debug version fields in decimal instead of hex Date: Mon, 6 Aug 2012 22:47:11 -0400 Message-Id: <1344307634-11673-22-git-send-email-dheitmueller@kernellabs.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1344307634-11673-1-git-send-email-dheitmueller@kernellabs.com> References: <1344307634-11673-1-git-send-email-dheitmueller@kernellabs.com> X-Gm-Message-State: ALoCoQmmL1CYl6bq9Ek1ZFVzMz5KkURhobAsKa5X1JPRZwOe8Du1EvuNfZJDYAiUc1EzY5ufdppp Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The driver prints out a dotted version number but it's in hex. As a result, the version doesn't visibly match the filename for the firmware, and it caused a bunch of confusion while discussing different versions with the chip manufacturer. Change the firmware printout to be in decimal. Signed-off-by: Devin Heitmueller --- drivers/media/common/tuners/xc5000.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c index 3e5f8cd..4bb20fa 100644 --- a/drivers/media/common/tuners/xc5000.c +++ b/drivers/media/common/tuners/xc5000.c @@ -702,7 +702,7 @@ static void xc_debug_dump(struct xc5000_priv *priv) xc_get_version(priv, &hw_majorversion, &hw_minorversion, &fw_majorversion, &fw_minorversion); xc_get_buildversion(priv, &fw_buildversion); - dprintk(1, "*** HW: V%02x.%02x, FW: V%02x.%02x.%04x\n", + dprintk(1, "*** HW: V%d.%d, FW: V %d.%d.%d\n", hw_majorversion, hw_minorversion, fw_majorversion, fw_minorversion, fw_buildversion);