From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH 1/3] stringfns: remove rte_snprintf Date: Tue, 24 Jun 2014 10:54:27 -0700 Message-ID: <20140624105427.166c21bf@nehalam.linuxnetplumber.net> References: <20140624090253.140206a7@nehalam.linuxnetplumber.net> <59AF69C657FD0841A61C55336867B5B02CEE3359@IRSMSX103.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev-VfR2kkLFssw@public.gmane.org" To: "Richardson, Bruce" Return-path: In-Reply-To: <59AF69C657FD0841A61C55336867B5B02CEE3359-kPTMFJFq+rELt2AQoY/u9bfspsVTdybXVpNB7YpNyf8@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" On Tue, 24 Jun 2014 17:39:52 +0000 "Richardson, Bruce" wrote: > > -----Original Message----- > > From: dev [mailto:dev-bounces-VfR2kkLFssw@public.gmane.org] On Behalf Of Stephen Hemminger > > Sent: Tuesday, June 24, 2014 9:03 AM > > To: dev-VfR2kkLFssw@public.gmane.org > > Subject: [dpdk-dev] [PATCH 1/3] stringfns: remove rte_snprintf > > > > The function rte_snprintf serves no useful purpose. It is the > > same as snprintf() for all valid inputs. Just remove it and > > replace all uses in current code. > > > > Signed-off-by: Stephen Hemminger > > > > NAK to this as is. > Approve of replacing all instance of the rte_snprintf function with the standard version in all our code and libraries. > However, rather than just removing the function completely, I think we should just flag the function as deprecated initially, and then later on look to remove it completely. > > /Bruce I want to get it out now rather than some 2 year life cycle. The issue was discussed and marking it as deprecated breaks the build. Alternate is removing all instances and adding: #define rte_snprintf snprintf in header file for user compatiablity.