Re: [sr-dev] unsigned int formatting char in rpc->struct_add?

2010-04-14 Thread Juha Heinanen
Jan Janak writes: > There currently isn't any, but I've already been thinking about adding > one, because there are many other functions that print large integers > and getting negative numbers in sercmd is annoying. jan, adding "u" would be great. -- juha __

Re: [sr-dev] unsigned int formatting char in rpc->struct_add?

2010-04-14 Thread Jan Janak
Juha, On Wed, Apr 14, 2010 at 5:56 AM, Juha Heinanen wrote: > i noticed that lcr.dump_gws prints defunct_until as a signed int, which > is wrong, because the value is unsigned int. > > the statement in the code is this: > >                rpc->struct_add(st, "dSddd", >                            

[sr-dev] unsigned int formatting char in rpc->struct_add?

2010-04-14 Thread Juha Heinanen
i noticed that lcr.dump_gws prints defunct_until as a signed int, which is wrong, because the value is unsigned int. the statement in the code is this: rpc->struct_add(st, "dSddd", "strip", gws[i].strip, "tag",&t