From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48C1FA00C5; Mon, 19 Dec 2022 10:20:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED2AF40146; Mon, 19 Dec 2022 10:20:08 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id F2ECB400D4 for ; Mon, 19 Dec 2022 10:20:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671441606; x=1702977606; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=5jyitw7AlhX7xIFcoWwS7x6sZkS2WOTtXvIZqyCUdJw=; b=XPyZX9yNn6fCPK19MU2p/b9BVF3KiZbu3URLTESudVe1H6FjyxP0Ceai UEECT9KKtfos5P1LvXGkK8Bf9uuCOCiWH7SteUigvT+bYNIP/i71aU6fr KDJej44SsX/OLs5J17qGTVBKoQgfJnUfoFa8jSGQ9nqAigGFxPGKoglFG xV5kovoJtY+ymfg3eXMmd67TK7heFgdowBJV++4lpE2cHELRN82+NKE1/ rEVLH0o9XJm2XB4MmMd6Kv68gzlMY1jVeqQ2DIMzOO6Jm3KJx9J/0vxu/ NYNSNLv6Clo03iRGRZ8YgIsyw+s3Ft8aPbSgXGj53gI/E1wPAwIKfwRin Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10565"; a="321198586" X-IronPort-AV: E=Sophos;i="5.96,255,1665471600"; d="scan'208";a="321198586" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2022 01:20:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10565"; a="628241391" X-IronPort-AV: E=Sophos;i="5.96,255,1665471600"; d="scan'208";a="628241391" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga006.jf.intel.com with ESMTP; 19 Dec 2022 01:20:03 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 19 Dec 2022 01:20:03 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 19 Dec 2022 01:20:02 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Mon, 19 Dec 2022 01:20:02 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.176) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Mon, 19 Dec 2022 01:20:01 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kXtH3a2At8/832fryra+eER8vDvCQAJX8SRD/Xpv/hVmzVop5YVSy0vhA2aQ8ZnzuF6DcEbX2p7BWVJfAC/tHtuim7PDUlMm5n1i/p14l+myfIAbBLdWMd0a0oEtRgBUqviuiWUKcX9xwxmAV1j+Ar2Kuz5TbMdRHvz02mukGZhUxUkSSqrtR3wjKwnzYjdMHmVbo1EY8mihusBa0wyXTbc3dLdWZn+/u8mgFROzvr1ObxuAEVU/HUMd23Civ51jziNlBKIrJhkI/xXmaNe0bftfalG9SwVf6ohecG33P9poHrjTBoudLD1tk9TzTdVeSW42q6qij4hoGnPT8Hpb5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uDpVKfGWJ4Z9GGiKpCaTMud2Vhjk5GfiRnnh6xfUyoI=; b=gZ738e3ZJwVaK1i9B0yHv0BHpgmPB3hG2MoTxilwlZNLMdltREs2wlaEFCxgv46gohnOaLiS2t4ewBM6p+0zYKWfzK0iqenKcQPOz0Vih1Vjog+M3aD8oxCZ6wKlJDXBmD3D+oi1L9vvuYRDZHHOzcUfia8zh/Gs5f+YWIt57r+tPe8LgT0hKIpERw3HzOZr22c+jjEQyau9UxbcGZYqpXIBNK9A7r/alZ3NBd2UdOkbx/fkEubhCTdIgHLRTsKEVnP1wqPdXcelR7jGvWCl9hMkEe64SovM4Fabe6s3YtRkCwYd35tv8lqUAb0mMULIQb/6KnAqUnSqnyiFfLNXPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) by CY8PR11MB7194.namprd11.prod.outlook.com (2603:10b6:930:92::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Mon, 19 Dec 2022 09:20:00 +0000 Received: from MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::5ce5:e8ac:70b0:6908]) by MWHPR11MB1629.namprd11.prod.outlook.com ([fe80::5ce5:e8ac:70b0:6908%9]) with mapi id 15.20.5924.016; Mon, 19 Dec 2022 09:20:00 +0000 Date: Mon, 19 Dec 2022 09:19:48 +0000 From: Bruce Richardson To: Huisong Li CC: , , , , , Subject: Re: [PATCH V8 6/8] telemetry: support adding integer value as hexadecimal Message-ID: References: <20221208080540.62913-1-lihuisong@huawei.com> <20221219070648.33817-1-lihuisong@huawei.com> <20221219070648.33817-7-lihuisong@huawei.com> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221219070648.33817-7-lihuisong@huawei.com> X-ClientProxiedBy: LO3P123CA0001.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:ba::6) To MWHPR11MB1629.namprd11.prod.outlook.com (2603:10b6:301:d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB1629:EE_|CY8PR11MB7194:EE_ X-MS-Office365-Filtering-Correlation-Id: 7347b573-3b3a-44d5-1fb3-08dae1a23425 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vOoz+j8XUlUy5YTfbYISfPm/yF5RdoQtN57Hm1vg8X5aQJV3wkJC7MKJZcR+JW6lfOC9deZ0EOlREWDYRL91NaPFymu818RrGPVHKQ5JR6AqEcDZ6q6h4z/yLtqJD/oTOu/q+VuDle/NSfN0AxQRqcl8P5OLrp57O6PeAzCNYB55ffFLWtmSbNwMNfXnHnh8qX735DGfL06mhM8APJmEbYCnKwhuNBUrYKe5LnXAd2VpCpOf5uUu2bUmfKvCW3WLhTfjLF983KqeuQ5+EA2Id8D5jQqRKjDny4vDQflHKJg8xDZqSarqkMzkX9uXxnlFEJItAgvs13XFg9kBiqoUHvU5Z4GUZ37aq7zvFxi9blkMxGVnB3hQL51cvqAxnKrJNQMuNtglaKiLkiySX07vRLlyzaa4m726FofiQQbetYnUeDQAdndK2DI09jTSfrRmAjjU5S0qgmMmtldO48T5uxGDiFtvFlH+5DLsfp7pq8LZMWboln04sfeeRQaro61de/u9yHhvQH7C68Hg+qwoKe+CgmtHrUJo00juYulTimKH6R7VPCWxDguRjRcLrQe/UHB2PGX4Tpw5Deq6F2wxYCMDed6pHO8C5clkHFoSF8tE57nLQye4MKEpawn0JxcaAgS8kPgs1uxFHbBEWuuZZA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1629.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(376002)(366004)(346002)(396003)(39860400002)(136003)(451199015)(8676002)(4326008)(41300700001)(82960400001)(38100700002)(5660300002)(8936002)(4744005)(2906002)(44832011)(6506007)(6666004)(478600001)(6486002)(86362001)(66946007)(6916009)(316002)(26005)(66556008)(66476007)(186003)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?stBK1WQPJ1i7zWw3aAdPuzuWva5QL4GGt2CXDcfrOKb3YJs63OIxrbTRzZ?= =?iso-8859-1?Q?fcikqk5YJZBX4h8nWWFR6cY81c5/t2L3HuwCXdxrPmXd1RKuZ4xf5hk9nD?= =?iso-8859-1?Q?Wn/lR0i8RJk16GmRPEYMED9jGhDKtrKsYHG2YZubX0SPssoh6NpXLwhYFA?= =?iso-8859-1?Q?YAmsuVMHik3tKA6reYwPzrYpvYmL1AN6hSyW3m7t7r5dujidR83wcXpMbT?= =?iso-8859-1?Q?cAy4DELnrTbyjmNG/BmMT/eoie2f/kCPgcCH0trZ+dWY2ZKoU2cXbV4jXS?= =?iso-8859-1?Q?IWyhUiCnYavNWT//XiQaa2iAjj3H5B1SMwQ80Xm+XiVXnJ4wT8/1QPIP7f?= =?iso-8859-1?Q?YnJK0wH/2bIta8TZdFssKk2FJrtA/jXE42C/b1MDPUDufgtgVHy03tN8RE?= =?i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2jntRkQZzP7/MFJBIV4GfsN1p+z0l4Fx?= =?iso-8859-1?Q?kj/BhuYvDabgWAnuXVFK2OFDFQdlB/ic7FZjXqs1cmUCZkE90XNDaKdITx?= =?iso-8859-1?Q?N6t5isSMQHUQGc7i7pIYesUhSmSp7ySXhYKFWYkSDT5Q1vEaXZBcGif44i?= =?iso-8859-1?Q?6Q8EIlvt9gzc1z5CPA7Xyfd1VN1YanPz8Z1O4Td3BbFV5dXJRDtszcO9l3?= =?iso-8859-1?Q?4S1f70ZS4bVVvSvRyUYK33iWRv2YrhRm3YPPQCLwv3fUZA70/dUxUMClD+?= =?iso-8859-1?Q?LURsN4S1al/Rpsl/CDeEZgGrRUi4rdlKaGHFdZMD+yfTJW2JqkHlJs7es/?= =?iso-8859-1?Q?8VwttoJZY0TQ5tjUyqhrVsNvaDQ2PxOIEGSv1BP2zkVNOi182TobaPAw?= =?iso-8859-1?Q?=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 7347b573-3b3a-44d5-1fb3-08dae1a23425 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1629.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2022 09:20:00.3864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aXASbj98+6653iY16zdykJd5gpYvyVXd7mBGaXLJdoQmFxpw/SO+H3CcLxrJDZ8fgsmKbhajTAarsTF1djTb4q6dkj9PFwbxGLgpHubOtz0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7194 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, Dec 19, 2022 at 03:06:46PM +0800, Huisong Li wrote: > Sometimes displaying a unsigned integer value as hexadecimal encoded style > is more expected for human consumption, such as, offload capability and > device flag. This patch introduces two APIs to add unsigned integer value > as hexadecimal encoded string to array or dictionary. And user can choose > whether the stored value is padding to the specified width. > > Signed-off-by: Huisong Li > Acked-by: Morten Brørup > Acked-by: Chengwen Feng Acked-by: Bruce Richardson