Re: [vpp-dev] some issue about using unformat %u 

2017-09-20 Thread Dave Barach (dbarach)
...@zte.com.cn Subject: [vpp-dev] some issue about using unformat %u hi all: we found some common using issues about the use of CLI unformat, as follow: u16 out_port = 0; u32 vrf_id = 0, protocol; else if (unformat (line_input, "%U %u", unformat_i

Re: [vpp-dev] some issue about using unformat %u 

2017-09-19 Thread Florin Coras
Hi Hui, Yup, that’s a ‘known’ unformat trap. When unformatting integers, use u32. Florin > On Sep 19, 2017, at 8:33 PM, > wrote: > > hi all: > > we found some common using issues about the use of CLI unformat, as follow: > > > > u16

[vpp-dev] some issue about using unformat %u 

2017-09-19 Thread wang.hui56
hi all: we found some common using issues about the use of CLI unformat, as follow: u16 out_port = 0 u32 vrf_id = 0, protocol else if (unformat (line_input, "%U %u", unformat_ip4_address, _addr, _port)) when inputing u16 or u8 type param(not u32), the local