Avoid printf type modifiers not supported by MSVC C runtime library.
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Tue, 26 Nov 2013 07:38:48 +0000 (23:38 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 26 Nov 2013 07:38:59 +0000 (23:38 -0800)
commit34582733d9aad82bba60f4bf986b62d58412502a
tree9f42e24f813d7059b6c0ef529e1b631b443e53cb
parent4d3daf048134e8c375fdadcec7e51d1dc28fe0b6
Avoid printf type modifiers not supported by MSVC C runtime library.

The MSVC C library printf() implementation does not support the 'z', 't',
'j', or 'hh' format specifiers.  This commit changes the Open vSwitch code
to avoid those format specifiers, switching to standard macros from
<inttypes.h> where available and inventing new macros resembling them
where necessary.  It also updates CodingStyle to specify the macros' use
and adds a Makefile rule to report violations.

Signed-off-by: Alin Serdean <aserdean@cloudbasesolutions.com>
Co-authored-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
47 files changed:
AUTHORS
CodingStyle
Makefile.am
lib/bfd.c
lib/bond.c
lib/bundle.c
lib/coverage.c
lib/dpif-linux.c
lib/dynamic-string.c
lib/hmap.c
lib/multipath.c
lib/netdev-bsd.c
lib/netdev-linux.c
lib/netlink-socket.c
lib/netlink.c
lib/nx-match.c
lib/odp-util.c
lib/ofp-actions.c
lib/ofp-print.c
lib/ofp-util.c
lib/ofpbuf.c
lib/ovsdb-data.c
lib/ovsdb-idl.c
lib/ovsdb-parser.c
lib/pcap-file.c
lib/socket-util.c
lib/stp.c
lib/stream-ssl.c
lib/util.c
lib/util.h
ofproto/ofproto-dpif-upcall.c
ofproto/ofproto-dpif.c
ofproto/ofproto.c
ovsdb/execution.c
ovsdb/jsonrpc-server.c
ovsdb/log.c
ovsdb/ovsdb-client.c
ovsdb/ovsdb-server.c
ovsdb/transaction.c
tests/test-aes128.c
tests/test-hindex.c
tests/test-hmap.c
tests/test-netflow.c
tests/test-odp.c
tests/test-ovsdb.c
tests/test-stp.c
utilities/ovs-ofctl.c