[ovs-dev] [PATCH] util: New wrapper function ovs_vsnprintf().
Saurabh Shah
ssaurabh at vmware.com
Mon Nov 18 17:45:48 UTC 2013
From: Ben Pfaff <blp at nicira.com<mailto:blp at nicira.com>>
Date: Friday, November 15, 2013 9:07 AM
To: Saurabh Shah <ssaurabh at nicira.com<mailto:ssaurabh at nicira.com>>
Cc: "dev at openvswitch.org<mailto:dev at openvswitch.org>" <dev at openvswitch.org<mailto:dev at 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 <ssaurabh at nicira.com<mailto:ssaurabh at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20131118/4490a7cc/attachment-0003.html>
More information about the dev
mailing list