From patchwork Fri Nov 2 12:09:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Toshiaki Yamane X-Patchwork-Id: 1688191 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E7A503FD4E for ; Fri, 2 Nov 2012 12:09:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755245Ab2KBMJg (ORCPT ); Fri, 2 Nov 2012 08:09:36 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:55903 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754238Ab2KBMJf (ORCPT ); Fri, 2 Nov 2012 08:09:35 -0400 Received: by mail-pb0-f46.google.com with SMTP id rr4so2426346pbb.19 for ; Fri, 02 Nov 2012 05:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=dhTd4jClAsxsjI7p1pGURGy8mCrQ/vxVWlRv0u92Mz4=; b=gKTrCGWJbt7ypZaL0SsrDI7Dwz672Io5XLsRxpHH6yGVetb88dg1D+L7SS5OeMoz5t gWzT/NRKMYbkbfNyaHgLo1pMITP8XuBT8PPeqMaH8BFtpbDufVPbdwfgINCGla8NTjxI lqW6b52LfjxvcKoOSWf7aNgD34kTKcUsmzHH6rTWq/E+0bVur6O5GabBTeA/VZF30M+9 Bn5VR/SWJgbf6t3HnjgeWAnqv6sQSMPpCiFeZEBDZA3s7bu1pO/6It2qGTVr6gxlfGCi xEvzFXz0/XCMlDjZ1oTMLxa/hzYubfjxrexhcwNHQUXN5SyWHHPnEXbygf3OekiTZgdH wXkA== Received: by 10.68.125.230 with SMTP id mt6mr5418065pbb.110.1351858174805; Fri, 02 Nov 2012 05:09:34 -0700 (PDT) Received: from localhost (softbank220057059032.bbtec.net. [220.57.59.32]) by mx.google.com with ESMTPS id o7sm5651872pay.14.2012.11.02.05.09.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 02 Nov 2012 05:09:33 -0700 (PDT) From: YAMANE Toshiaki To: Greg Kroah-Hartman , linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, YAMANE Toshiaki Subject: [PATCH 2/2] Staging/media: Use dev_ printks in go7007/wis-ov7640.c Date: Fri, 2 Nov 2012 21:09:29 +0900 Message-Id: <1351858169-5742-1-git-send-email-yamanetoshi@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351858121-5708-1-git-send-email-yamanetoshi@gmail.com> References: <1351858121-5708-1-git-send-email-yamanetoshi@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org fixed below checkpatch warnings. - WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ... - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki Tested-by: Peter Senna Tschudin --- drivers/staging/media/go7007/wis-ov7640.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/go7007/wis-ov7640.c b/drivers/staging/media/go7007/wis-ov7640.c index eb5efc9..fe46374 100644 --- a/drivers/staging/media/go7007/wis-ov7640.c +++ b/drivers/staging/media/go7007/wis-ov7640.c @@ -59,12 +59,12 @@ static int wis_ov7640_probe(struct i2c_client *client, client->flags = I2C_CLIENT_SCCB; - printk(KERN_DEBUG + dev_dbg(&client->dev, "wis-ov7640: initializing OV7640 at address %d on %s\n", client->addr, adapter->name); if (write_regs(client, initial_registers) < 0) { - printk(KERN_ERR "wis-ov7640: error initializing OV7640\n"); + dev_err(&client->dev, "wis-ov7640: error initializing OV7640\n"); return -ENODEV; }