From patchwork Tue May 24 23:55:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: achew@nvidia.com X-Patchwork-Id: 814502 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4ONwMAM009851 for ; Tue, 24 May 2011 23:58:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933171Ab1EXX5s (ORCPT ); Tue, 24 May 2011 19:57:48 -0400 Received: from hqemgate03.nvidia.com ([216.228.121.140]:16220 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757467Ab1EXX5p (ORCPT ); Tue, 24 May 2011 19:57:45 -0400 Received: from hqnvupgp08.nvidia.com (Not Verified[216.228.121.13]) by hqemgate03.nvidia.com id ; Tue, 24 May 2011 17:07:02 -0700 Received: from hqemhub03.nvidia.com ([172.17.108.22]) by hqnvupgp08.nvidia.com (PGP Universal service); Tue, 24 May 2011 16:57:45 -0700 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Tue, 24 May 2011 16:57:45 -0700 Received: from achew-ubuntu64.nvidia.com (172.20.144.16) by hqemhub03.nvidia.com (172.20.150.15) with Microsoft SMTP Server id 8.2.254.0; Tue, 24 May 2011 16:57:45 -0700 From: To: , , CC: , , Andrew Chew Subject: [PATCH 2/3] [media] ov9740: Correct print in ov9740_reg_rmw() Date: Tue, 24 May 2011 16:55:37 -0700 Message-ID: <1306281338-20247-2-git-send-email-achew@nvidia.com> X-Mailer: git-send-email 1.7.5.1 In-Reply-To: <1306281338-20247-1-git-send-email-achew@nvidia.com> References: <1306281338-20247-1-git-send-email-achew@nvidia.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 24 May 2011 23:58:22 +0000 (UTC) From: Andrew Chew The register width of the ov9740 is 16-bits, so correct the debug print to reflect this. Signed-off-by: Andrew Chew --- drivers/media/video/ov9740.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/ov9740.c b/drivers/media/video/ov9740.c index 96811e4..d5c9061 100644 --- a/drivers/media/video/ov9740.c +++ b/drivers/media/video/ov9740.c @@ -537,7 +537,8 @@ static int ov9740_reg_rmw(struct i2c_client *client, u16 reg, u8 set, u8 unset) ret = ov9740_reg_read(client, reg, &val); if (ret < 0) { dev_err(&client->dev, - "[Read]-Modify-Write of register %02x failed!\n", reg); + "[Read]-Modify-Write of register 0x%04x failed!\n", + reg); return ret; } @@ -547,7 +548,8 @@ static int ov9740_reg_rmw(struct i2c_client *client, u16 reg, u8 set, u8 unset) ret = ov9740_reg_write(client, reg, val); if (ret < 0) { dev_err(&client->dev, - "Read-Modify-[Write] of register %02x failed!\n", reg); + "Read-Modify-[Write] of register 0x%04x failed!\n", + reg); return ret; }