[dpdk-dev] [PATCH] mbuf:using sanity checks do not panic on null mbuf
    Wiles, Keith 
    keith.wiles at intel.com
       
    Mon Jan  8 16:41:12 CET 2018
    
    
  
> On Jan 8, 2018, at 9:39 AM, Stephen Hemminger <stephen at networkplumber.org> wrote:
> 
> On Mon,  8 Jan 2018 09:34:23 -0600
> Keith Wiles <keith.wiles at intel.com> wrote:
> 
>> +	if (!m || !f) {
>> +		fprintf(stderr, "MBUF and/or FILE pointer is NULL\n");
>> +		return;
>> +	}
> 
> Calling with f of NULL is user error, let it still die in fprintf.
I thought about that too, but this routine is a debug routine does it really matter?
Regards,
Keith
    
    
More information about the dev
mailing list