Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp885146pxb; Wed, 27 Oct 2021 14:27:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlsngSyEKjZZlnN0M+IQf9MR1bCpQnPSH8Bzzkg13J7WzqXVQs5WWF8GHNBhxqiqfcSnrH X-Received: by 2002:a17:906:cccc:: with SMTP id ot12mr97210ejb.424.1635370053654; Wed, 27 Oct 2021 14:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370053; cv=none; d=google.com; s=arc-20160816; b=z99McaRXH5c/WF2kHiEHLutXRCP65358BzwgHfCpw1cw7Ru8cJXwUM8P9mrLyk75hZ rB6AdV85hPSVCledlTiBS2GyuyEYXI9O5sLtN+BJcqSJlEvFrfNHKQ+LZrM5XZTS3oqc xjtLoql4RwijYWkqCLpN3Z1UmX32p1ucQWw/9YNTtukDIDotIlTePeyAfC7lByWVK6o7 vMlBJ4R4/2BVi3ZhD3WslK4y+p25W0J4JzVjgdg07srzcXd31vTlkMOW97HD9ONtXk+1 YblAk+Pktl8RQzjCxn5/QEF4HcvBQXKS7jiYk+j8x8jkiXjA1C/f9EghrjSoVfs2KFAl AKbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5XY0p9EwqtXqI73ufZZIFF//B503X89sBhoww2o6xAc=; b=U467C1V1PzeICN8vmWutY39bypGdsVduLiR/rDYvPOIxDJCNIr0P2g2bXvLmgziDoA KvTdS2OLauDYXIUEEnqzNWCnDKHa4Piqt52ALXx5JOaHShO1ofSQfl8QGaasu3ysyBgS 6PgxtuU8dj4KnN20MCydAioICUup0y7eKRcIfiNxK65/dHz9aSqPPYMT0v6Trap+wZBB 7LkFM06SUQk5Yh6tWthQX2/xTY425NpS+ax5LU3qtRG6qzJ1D8FLBzMBgVMnZY1C/kCn SpZDHxhdIXqRRVJcbX3DxjcT81wo+UhLEANF4VRiQJja5pkWZvtoBhwbwALG83J7dQya ivKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si1828105edx.86.2021.10.27.14.27.10; Wed, 27 Oct 2021 14:27:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241883AbhJ0MSw (ORCPT + 97 others); Wed, 27 Oct 2021 08:18:52 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:14870 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241810AbhJ0MSk (ORCPT ); Wed, 27 Oct 2021 08:18:40 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HfSMr32hGz90MJ; Wed, 27 Oct 2021 20:16:08 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Wed, 27 Oct 2021 20:16:11 +0800 Received: from localhost.localdomain (10.67.165.24) by kwepemm600016.china.huawei.com (7.193.23.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Wed, 27 Oct 2021 20:16:11 +0800 From: Guangbin Huang To: , , CC: , , , , Subject: [PATCH net 5/7] net: hns3: add more string spaces for dumping packets number of queue info in debugfs Date: Wed, 27 Oct 2021 20:11:47 +0800 Message-ID: <20211027121149.45897-6-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211027121149.45897-1-huangguangbin2@huawei.com> References: <20211027121149.45897-1-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600016.china.huawei.com (7.193.23.20) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jie Wang As the width of packets number registers is 32 bits, they needs at most 10 characters for decimal data printing, but now the string spaces is not enough, so this patch fixes it. Fixes: e44c495d95e ("net: hns3: refactor queue info of debugfs") Signed-off-by: Jie Wang Signed-off-by: Guangbin Huang --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c index 2b66c59f5eaf..3aaad96d0176 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c @@ -462,7 +462,7 @@ static const struct hns3_dbg_item rx_queue_info_items[] = { { "TAIL", 2 }, { "HEAD", 2 }, { "FBDNUM", 2 }, - { "PKTNUM", 2 }, + { "PKTNUM", 5 }, { "COPYBREAK", 2 }, { "RING_EN", 2 }, { "RX_RING_EN", 2 }, @@ -565,7 +565,7 @@ static const struct hns3_dbg_item tx_queue_info_items[] = { { "HEAD", 2 }, { "FBDNUM", 2 }, { "OFFSET", 2 }, - { "PKTNUM", 2 }, + { "PKTNUM", 5 }, { "RING_EN", 2 }, { "TX_RING_EN", 2 }, { "BASE_ADDR", 10 }, -- 2.33.0