lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e8320954-1937-0c17-5893-035a4e7c35e4@cogentembedded.com>
Date:   Wed, 22 Mar 2017 12:19:31 +0300
From:   Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To:     Jakub Kicinski <jakub.kicinski@...ronome.com>,
        netdev@...r.kernel.org
Cc:     oss-drivers@...ronome.com, kubakici@...pl
Subject: Re: [PATCH net-next 11/15] nfp: don't use netdev_warn() before netdev
 is registered

Hello!

On 3/22/2017 3:59 AM, Jakub Kicinski wrote:

> Fix warning which was using netdev_warn() instead of dev_warn()

    I'm seeing nn_warn()...

> to early.

    Too. :-)

> Signed-off-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
> ---
>  drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
> index f134f1808b9a..19f9d95faea4 100644
> --- a/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
> +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_common.c
> @@ -336,9 +336,9 @@ nfp_net_irqs_assign(struct nfp_net *nn, struct msix_entry *irq_entries,
>
>  	if (dp->num_rx_rings > dp->num_r_vecs ||
>  	    dp->num_tx_rings > dp->num_r_vecs)
> -		nn_warn(nn, "More rings (%d,%d) than vectors (%d).\n",
> -			dp->num_rx_rings, dp->num_tx_rings,
> -			dp->num_r_vecs);
> +		dev_warn(nn->dp.dev, "More rings (%d,%d) than vectors (%d).\n",
> +			 dp->num_rx_rings, dp->num_tx_rings,
> +			 dp->num_r_vecs);
>
>  	dp->num_rx_rings = min(dp->num_r_vecs, dp->num_rx_rings);
>  	dp->num_tx_rings = min(dp->num_r_vecs, dp->num_tx_rings);

MBR, Sergei

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ