Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757902Ab0G3ARm (ORCPT ); Thu, 29 Jul 2010 20:17:42 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:40973 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755322Ab0G3ARk (ORCPT ); Thu, 29 Jul 2010 20:17:40 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=swCX5PWvVTSSAmcLSpUvaljarpxxB600C2eSUv7HHwnofvNHFpmFVKHXVFnxu4Bn86 J+zOsa0/DaJdCtgUqVz1adZMVpWUZIwh1XYqsqTcFI9STTL+X7nqXO86YpBgdg4TS0eq vd6cZK8y3LnsntX3dtfnIxbZUnYMCXYgteDtw= MIME-Version: 1.0 In-Reply-To: <61ca890fdbff3397e15328685ba6d86eaabf8fec.1280447281.git.joe@perches.com> References: <61ca890fdbff3397e15328685ba6d86eaabf8fec.1280447281.git.joe@perches.com> From: Mike Frysinger Date: Thu, 29 Jul 2010 20:17:19 -0400 Message-ID: Subject: Re: [PATCH net-next 2/3] drivers/net/bfin_mac.c: Use pr_, netdev_ To: Joe Perches Cc: Michael Hennerich , uclinux-dist-devel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id o6U0Hp6D009609 Content-Length: 1309 Lines: 28 On Thu, Jul 29, 2010 at 19:58, Joe Perches wrote: > Add and use pr_fmt, pr_ and netdev_ your changelog says add pr_fmt, but i dont see it in the patch ... > @@ -833,8 +830,7 @@ static void bfin_tx_hwtstamp(struct net_device *netdev, struct sk_buff *skb) >                       (--timeout_cnt)) >                        udelay(1); >                if (timeout_cnt == 0) > -                       printk(KERN_ERR DRV_NAME > -                                       ": fails to timestamp the TX packet\n"); > +                       pr_err("failed to timestamp the TX packet\n"); this func has a net_device, so cant you use netdev_err here ? > @@ -1102,8 +1097,7 @@ static void bfin_mac_rx(struct net_device *dev) > >        new_skb = dev_alloc_skb(PKT_BUF_SZ + NET_IP_ALIGN); >        if (!new_skb) { > -               printk(KERN_NOTICE DRV_NAME > -                      ": rx: low on mem - packet dropped\n"); > +               pr_notice("rx: low on mem - packet dropped\n"); same here otherwise this patch looks good -mike ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?