From patchwork Sat Mar 15 00:27:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 3836001 Return-Path: X-Original-To: patchwork-linux-sh@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 7159D9F369 for ; Fri, 14 Mar 2014 23:28:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 85F922026D for ; Fri, 14 Mar 2014 23:28:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DED520170 for ; Fri, 14 Mar 2014 23:28:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755659AbaCNX1z (ORCPT ); Fri, 14 Mar 2014 19:27:55 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:61247 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755511AbaCNX1y (ORCPT ); Fri, 14 Mar 2014 19:27:54 -0400 Received: by mail-la0-f49.google.com with SMTP id mc6so2192949lab.22 for ; Fri, 14 Mar 2014 16:27:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:organization:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=qWmuo+A4H18/ali2hfKdxq6T4Y1ywfcekPK0bhVQsVY=; b=kCQwj3sKxBTsyEO34d2ECkSsbQNi+Cgz1mN++PtrfXwSEtkL+aA+m74HYm2RKWO2ar Y2nc9HF4p+/HsFsU7SXzE2LHEHh7/TSR4XPbdQ96PxgYqS80p4w29cEdPn3uyTDu36b3 8JVJPMALGKc4rkix8caq1xs07FMBUe/iwdKuu0l5gaLyp255Z9UQIRyNt4BI9y9P91Wa LPjNhk78lI7jeZXLPMtEhukrXI+8PhKC0AW0WaqUxVT/kORvCbviEiQCy/d87YezZlCu XUASQaMNbLbYqTN27GfCl1mTRQcMvqjkYtFya25t+eGFEI4DC3TKt6olOh6gYFRJJczr FqRQ== X-Gm-Message-State: ALoCoQm4Worlog8guxXKj5Z26tiRHGB3zln6hqavSqJrEImzL8LLjPaOyKqqdX7IxDnWecw9aCRY X-Received: by 10.112.73.100 with SMTP id k4mr7013396lbv.25.1394839673677; Fri, 14 Mar 2014 16:27:53 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-61-145.pppoe.mtu-net.ru. [83.237.61.145]) by mx.google.com with ESMTPSA id th3sm7500556lbb.11.2014.03.14.16.27.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 14 Mar 2014 16:27:53 -0700 (PDT) From: Sergei Shtylyov Organization: Cogent Embedded To: netdev@vger.kernel.org Subject: [PATCH 1/3] sh_eth: convert pr_*() to netdev_*() calls Date: Sat, 15 Mar 2014 03:27:54 +0300 User-Agent: KMail/1.13.5 (Linux/2.6.32.26-175.fc12.i686.PAE; KDE/4.4.5; i686; ; ) Cc: linux-sh@vger.kernel.org, joe@perches.com References: <201403150321.47674.sergei.shtylyov@cogentembedded.com> In-Reply-To: <201403150321.47674.sergei.shtylyov@cogentembedded.com> MIME-Version: 1.0 Message-Id: <201403150327.55110.sergei.shtylyov@cogentembedded.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Convert pr_*() to netdev_*() calls as the latter provide info on a device. Suggested-by: Joe Perches Signed-off-by: Sergei Shtylyov --- drivers/net/ethernet/renesas/sh_eth.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -400,7 +400,8 @@ static void sh_eth_select_mii(struct net value = 0x0; break; default: - pr_warn("PHY interface mode was not setup. Set to MII.\n"); + netdev_warn(ndev, + "PHY interface mode was not setup. Set to MII.\n"); value = 0x1; break; } @@ -854,7 +855,7 @@ static int sh_eth_check_reset(struct net cnt--; } if (cnt <= 0) { - pr_err("Device reset failed\n"); + netdev_err(ndev, "Device reset failed\n"); ret = -ETIMEDOUT; } return ret; @@ -2924,8 +2925,8 @@ static int sh_eth_drv_probe(struct platf } /* print device information */ - pr_info("Base address at 0x%x, %pM, IRQ %d.\n", - (u32)ndev->base_addr, ndev->dev_addr, ndev->irq); + netdev_info(ndev, "Base address at 0x%x, %pM, IRQ %d.\n", + (u32)ndev->base_addr, ndev->dev_addr, ndev->irq); platform_set_drvdata(pdev, ndev);