Juha,
On Wed, Apr 14, 2010 at 5:56 AM, Juha Heinanen <jh(a)tutpro.com> 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",
"strip", gws[i].strip,
"tag", &tag,
"weight", gws[i].weight,
"flags", gws[i].flags,
"defunct_until", &gws[i].defunct_until
);
i tried to change the format string to "dSddu", but it didn't work:
Apr 14 12:49:34 localhost /usr/sbin/sip-proxy[30850]: : ctl [binrpc_run.c:1001]: BUG:
binrpc: rpc_struct_add: formatting char 'u' not supported }
what is the correct formatting char for unsigned int or is there any?
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