From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 759DBA09FF; Wed, 6 Jan 2021 16:55:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6181B1609C2; Wed, 6 Jan 2021 16:55:04 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 912331609B7 for ; Wed, 6 Jan 2021 16:55:02 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id j13so1796053pjz.3 for ; Wed, 06 Jan 2021 07:55:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ugWLkOXTrodl3BWOvOVCeLfs+p4q/rmleLIbjQrw/wc=; b=X29PqWlxbDj2Q/IAbBzJrLdpmzkxGAN6hSlfwiQiv2mWF4y3foCPMkAg4I9fZ1ZNwl Kpv0hCdRC41kkt/HXCbRS8D+6ee0e8w0xMj0HgYiuDhfIerq8nKN/DpeLaohvxWlvSaV bOHVBkoTs+qFYqtR8tsTkZXHaDRmvn+/eugp7Gufk0qEEk9jS8ZEGk1i9Au5RLruq+Kf c6omf/d/uwi9oCHf8988zBe+Td6cKiIFOz1WyYF9C4yAYuqkvP8vamezxTKfUW/U71pM 8s/v+3om4I2eDGzaDubQ6NkwRKac88CxHVsW3xUH9zSiYR4MnHsxdMvyyfZ0CxZETnMr zkUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ugWLkOXTrodl3BWOvOVCeLfs+p4q/rmleLIbjQrw/wc=; b=b+DI8CR7Fe7jwOAYgocRMSLB8wowSXgG/jKCYAHwl/rIZeB1DhkFjTQBj5+/O+EuHS yZWpMYDN4/SyHI3wt9L+3sZRoyY674q7l+XUVaoezlEoOCZaGnVFlBCA2cjeleE0EfhP louJwQZJn0oM7/bo3bsrPVhXl00tZlmSHRMoGXzZ3iy8Rra7diEC29bOkwRzs/7heDLG bqXJIs67b64mvc4ivA78y6upQcgnJMZ+dG83K/rMxA0Uk1l7pkIBfod1w56nF/UditCN i1oTePjyx84lxifUmwF1IepJn+TszSKo7A4Zirx1ZhdjeqEFn6ayIzrn83cpHO5fZ5BX 4iPg== X-Gm-Message-State: AOAM532+OPDW854lIFOIfzS5QDzyH1aUyWKI8N9xOohjtUREYqRqLl2s Kt4T1EbjW/6YZ/x0UvGBnmPC8Q== X-Google-Smtp-Source: ABdhPJwlXtmubbFn6OQ0rKnClpEwojKcuAyeduDwI5E1L+cHiAz7Jnvm8vei6yKcS0SEfRqPKrfGqA== X-Received: by 2002:a17:902:bf44:b029:da:d140:6f91 with SMTP id u4-20020a170902bf44b02900dad1406f91mr4725523pls.51.1609948501716; Wed, 06 Jan 2021 07:55:01 -0800 (PST) Received: from hermes.local (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u3sm3168142pjf.52.2021.01.06.07.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 07:55:01 -0800 (PST) Date: Wed, 6 Jan 2021 07:54:47 -0800 From: Stephen Hemminger To: Jiawei Wang Cc: ferruh.yigit@intel.com, wenzhuo.lu@intel.com, beilei.xing@intel.com, bernard.iremonger@intel.com, orika@nvidia.com, viacheslavo@nvidia.com, thomas@monjalon.net, rasland@nvidia.com, dev@dpdk.org Message-ID: <20210106075447.4c57e3b9@hermes.local> In-Reply-To: <1609942417-259610-1-git-send-email-jiaweiw@nvidia.com> References: <1606129239-379967-1-git-send-email-jiaweiw@nvidia.com> <1609942417-259610-1-git-send-email-jiaweiw@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6] app/testpmd: fix testpmd packets dump overlapping 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 Sender: "dev" On Wed, 6 Jan 2021 16:13:37 +0200 Jiawei Wang wrote: > +print_ether_addr(const char *what, const struct rte_ether_addr *eth_addr, > + char print_buf[], int buf_size, int *cur_len) Use size_t instead of int for sizes? The length can never be negative?