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 D4DB5A0543; Thu, 15 Dec 2022 08:56:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A84440684; Thu, 15 Dec 2022 08:56:58 +0100 (CET) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 30CE940223 for ; Thu, 15 Dec 2022 08:56:56 +0100 (CET) Received: from kwepemm600004.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NXkwh152DzgZ2N; Thu, 15 Dec 2022 15:52:36 +0800 (CST) Received: from [10.67.103.231] (10.67.103.231) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 15 Dec 2022 15:56:54 +0800 Message-ID: <4d0004d0-9197-4a02-6f81-56fdc1bf0bc9@huawei.com> Date: Thu, 15 Dec 2022 15:56:53 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH V5 5/8] mem: possible data truncation and conversion error To: =?UTF-8?Q?Morten_Br=c3=b8rup?= , CC: , , , , References: <20221208080540.62913-1-lihuisong@huawei.com> <20221214123253.29549-1-lihuisong@huawei.com> <20221214123253.29549-6-lihuisong@huawei.com> <98CBD80474FA8B44BF855DF32C47DC35D8759E@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35D875A3@smartserver.smartshare.dk> From: "lihuisong (C)" In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D875A3@smartserver.smartshare.dk> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.231] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected 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 在 2022/12/15 15:04, Morten Brørup 写道: >> From: lihuisong (C) [mailto:lihuisong@huawei.com] >> Sent: Thursday, 15 December 2022 02.12 >> >> 在 2022/12/14 21:00, Morten Brørup 写道: >>>> From: Huisong Li [mailto:lihuisong@huawei.com] >>>> Sent: Wednesday, 14 December 2022 13.33 >>>> >>>> --- a/lib/eal/common/eal_common_memory.c >>>> +++ b/lib/eal/common/eal_common_memory.c >>>> @@ -1139,7 +1139,7 @@ handle_eal_heap_info_request(const char *cmd >>>> __rte_unused, const char *params, >>>> malloc_heap_get_stats(heap, &sock_stats); >>>> >>>> rte_tel_data_start_dict(d); >>>> - rte_tel_data_add_dict_int(d, "Head id", heap_id); >>>> + rte_tel_data_add_dict_u64(d, "Head id", heap_id); >>> Consider: "Head id" -> "Heap_id" >> Need to do this in this patch? Maybe it's better to do this in a new >> patch. What do you think? > You are right. It belongs in a different patch, not related to this series. Yes, it isn't related to this series. I'll fix it after this series. >