From: Ben Pfaff <b...@nicira.com<mailto:b...@nicira.com>>
Date: Friday, November 15, 2013 9:07 AM
To: Saurabh Shah <ssaur...@nicira.com<mailto:ssaur...@nicira.com>>
Cc: "dev@openvswitch.org<mailto:dev@openvswitch.org>" 
<dev@openvswitch.org<mailto:dev@openvswitch.org>>
Subject: Re: [ovs-dev] [PATCH] util: New wrapper function ovs_vsnprintf().

On Wed, Nov 13, 2013 at 06:55:26PM -0800, Saurabh Shah wrote:
So that vsnprintf on windows has C99 like semantics.
Signed-off-by: Saurabh Shah <ssaur...@nicira.com<mailto:ssaur...@nicira.com>>

Microsoft documentation is just hilarious:

    vsnprintf is included for compliance to the ANSI standard; ...

But I guess this wrapper won't help much because the MS libc doesn't
support, for example, the 'z' modifier.  What's your plan for dealing
with that?

I was hoping we can just print with a larger length specifier. '%z' will there 
have to be disallowed and an appropriate signed/unsigned specifier should be 
used instead. Do you think that would be OK?
If not, there are only a handful of places where we use vsnprintf()'s, so I 
could #ifdefs the code.



_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to