Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7618841imu; Mon, 3 Dec 2018 16:16:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/XUi8vu806a66GorN59b+ZMVsXMDHyPxbFiGYh1TsbtIpj6Scn5a/L97d/RtAS5EF1wEYna X-Received: by 2002:a62:2a4b:: with SMTP id q72mr17703821pfq.61.1543882576412; Mon, 03 Dec 2018 16:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543882576; cv=none; d=google.com; s=arc-20160816; b=tbkI0tmGpzXF0eWtBLUpBYnKRr+HO4XzeaYgHKcCKZ0Sgo+VDts3No2/7A3QdAXONq Xhwa/BJFsCFycXl6DDfpwh8WdMNnEhnmvX39cBICKCPw8jSBmyBaNe4TWoI+OERaccTJ DeG/0w2wENaF3IXmRSLeMOxdDbHXP2PaZCqAS/y+l8m6MPDFwtBGLWP2tv4xxyXvX9ge gKfXxDFCpGjgCtOisWx0bPIG7Lnfu47jxGD890M7Nh6fWYJ96QME7hR0yhJkjNKnfK9i B6dAL0E5HVwJX1M+S3OTDBPu6uIPoxO7d/SF0VAG2Sluf3oYsy/SkFrN5hiWPz+DSExN CyFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=NRXc5yE1Q4fLbvPlTRNC5h7NId0T6JL/Xttbvt2DvPw=; b=MvVC7yHyDflVJeN4b0Ki1SJ2ZPbFTunAwPHbV7/7gD0uZ2rznRBENkYxHllXfnIqOq Ae6UAOi3AlQtwkJ9Iy8p4CAyoLh72ZGWPTCfBnxN3p4KAzph5FNg7IDXGLqzyvwpEAwx Cm7U4kGrGTKRXVOY+hopMmU/VNIqWD0moJd5rbwAqnkrrdr8dYv0Nw3Et3510mQfghFX BZmCdvB88PDoOCmFwqGGolLC+D1qGcc7dxp1zy/SqNlDqmXzjxz/OnZUI4gTV3kwLHHi qJnfZ50FC7M9O1IFvqtoigk4w42TuXajfFFppYz249VkNLUYaOeanxHCLt8xYm45Fuv1 mcKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si13644207pgg.510.2018.12.03.16.16.00; Mon, 03 Dec 2018 16:16:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726042AbeLDAPP (ORCPT + 99 others); Mon, 3 Dec 2018 19:15:15 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:50756 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbeLDAPP (ORCPT ); Mon, 3 Dec 2018 19:15:15 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id C6CFD133E98F7; Mon, 3 Dec 2018 16:15:14 -0800 (PST) Date: Mon, 03 Dec 2018 16:15:14 -0800 (PST) Message-Id: <20181203.161514.1229179839092578403.davem@davemloft.net> To: cai@gmx.us Cc: yisen.zhuang@huawei.com, salil.mehta@huawei.com, joe@perches.com, stephen@networkplumber.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net/core: tidy up an error message From: David Miller In-Reply-To: <20181202021119.7737-1-cai@gmx.us> References: <20181202021119.7737-1-cai@gmx.us> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 03 Dec 2018 16:15:15 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qian Cai Date: Sat, 1 Dec 2018 21:11:19 -0500 > netif_napi_add() could report an error like this below due to it allows > to pass a format string for wildcarding before calling > dev_get_valid_name(), > > "netif_napi_add() called with weight 256 on device eth%d" > > For example, hns_enet_drv module does this. > > hns_nic_try_get_ae > hns_nic_init_ring_data > netif_napi_add > register_netdev > dev_get_valid_name > > Hence, make it a bit more human-readable by using netdev_err_once() > instead. > > Signed-off-by: Qian Cai Applied, thanks.