From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier MATZ Subject: Re: [PATCH] cmdline: fix type format from unsigned to size_t for buffer size Date: Tue, 24 Mar 2015 12:19:31 +0100 Message-ID: <55114843.5060404@6wind.com> References: <1424449085-82466-1-git-send-email-danielx.t.mrzyglod@intel.com> <54EC5A9C.3060008@6wind.com> <2042259.HzLBmuaM6Z@xps13> <60ABE07DBB3A454EB7FAD707B4BB158213902C97@IRSMSX109.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev-VfR2kkLFssw@public.gmane.org" To: "Jastrzebski, MichalX K" , Thomas Monjalon , "Mrzyglod, DanielX T" Return-path: In-Reply-To: <60ABE07DBB3A454EB7FAD707B4BB158213902C97-kPTMFJFq+rHjxeytcECX8bfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi, On 03/24/2015 11:48 AM, Jastrzebski, MichalX K wrote: >>> On 02/20/2015 05:18 PM, Daniel Mrzyglod wrote: >>>> Function match_inst is used to take buffor using sizeof() which is size_t >> type. >>>> This modification also involved changing '%u' to '%zu' in printf function. >>>> >>>> Signed-off-by: Daniel Mrzyglod >>>> >>>> [...] >>> >>> Did you see a specific issue with the current code? (maybe a compilation >>> issue or a klocwork issue?) > Hi Olivier, Thomas > Yes, this is an issue reported by the static analysis tool. >>> >>> I think this patch is ok, but there are many places where this kind >>> of fixes should be applied in cmdline (cmdline_parse_*(), >>> cmdline_get_help_*(), etc.). Is there a motivation for changing it >>> only there? > The tool we use didn't reported other places, > that is why Daniel send only this one change. I think it would be great to look at other places to check if the same change is required. Regards, Olivier