From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id C58CD4F9C for ; Mon, 19 Nov 2018 00:13:03 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4D3CA21CE2; Sun, 18 Nov 2018 18:13:03 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 18 Nov 2018 18:13:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=6rgA3C17+sexzj+X9n5t6jwEofpzOuz6Bv5X9oRDBVc=; b=Q9aH4Y/o4t5X Rb8Rkv96P41cc+YbRWefTaCYWK/6I8uD5gu7MKO8WlKeN9AjCk937WsXWy9+IB6G 7CUTndp4c9hkEt5ClJX1gAINfIODMkoJZe0m1B4IYa4kb8VWjPrrrlPpUMVaqqfB +m6vzEwBN+6FdNFElmi43E8TuZPK/XY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=6rgA3C17+sexzj+X9n5t6jwEofpzOuz6Bv5X9oRDB Vc=; b=pI7237YiZxEKP2/8koiQLuYRrGYv+0YfQJ/PIWMILKmLviS968NMPw20r RyKfT5ljdz705wI8XOmMnZ2Z1Sk60B7DzA37wgCXKyjYWHMCja4L+SR/qiyFkRL6 73qcVyn+h7CwgcyejE0ztrbfKm5mZ/tcLULpkB9M9G5jnJOlVoOpipWSGQjjRly8 6c2NKFQAhYkCIN7ysftdZpMnDoF/77D67bBafX+ULTQ9aSrZxAHqJp4EEUxZmQm7 4/vvdQGhW4sjllioqSrOgiMIlryBm2LrgAEglb63F9N4fauKwrWZhNsBSO1G1iZd xkv8qYtbAy9gJda0HPXs/pqdAH40Q== X-ME-Sender: X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id C097DE414B; Sun, 18 Nov 2018 18:13:01 -0500 (EST) From: Thomas Monjalon To: Anatoly Burakov Cc: dev@dpdk.org, david.hunt@intel.com, john.mcnamara@intel.com, ferruh.yigit@intel.com Date: Mon, 19 Nov 2018 00:13:00 +0100 Message-ID: <2050019.mpedAaAYAq@xps> In-Reply-To: <07b7c67be5adc770b028212ef8918d4ae8f11255.1542127066.git.anatoly.burakov@intel.com> References: <07b7c67be5adc770b028212ef8918d4ae8f11255.1542127066.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] devbind: don't display non-existent device categories X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2018 23:13:04 -0000 13/11/2018 17:42, Anatoly Burakov: > --- a/usertools/dpdk-devbind.py > +++ b/usertools/dpdk-devbind.py > + n_devs = len(dpdk_drv) + len(kernel_drv) + len(no_drv) > + > + # don't bother displaying anything if there are no devices > + if n_devs == 0: > + msg = "No '%s' devices detected" % device_name > + print("") > + print(msg) > + print("".join('=' * len(msg))) > + return > + Indentation is wrong here: TabError: inconsistent use of tabs and spaces in indentation