vlog: Make the most common module reference more direct.
authorBen Pfaff <blp@ovn.org>
Wed, 3 Feb 2016 21:21:10 +0000 (13:21 -0800)
committerBen Pfaff <blp@ovn.org>
Wed, 10 Feb 2016 21:35:56 +0000 (13:35 -0800)
commit922fed065e65ad8388528976d631445f9e768f55
tree4ce22727b222aed78846fae48a2ae046a7b8d2fb
parent3ca6cc76c3f3d171fcc7361a7ad4edd452834b7c
vlog: Make the most common module reference more direct.

Most vlog calls are for the log module owned by the translation unit being
compiled, but this module was referenced indirectly through a pointer
variable.  That seems silly, so this commit changes the code so that the
local vlog module is referred to directly, as &this_module.

We could get rid of the global variables for vlog modules entirely, but
I like getting linker errors when there's a duplicate module name.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
14 files changed:
include/openvswitch/vlog.h
lib/bfd.c
lib/db-ctl-base.c
lib/dpif.c
lib/jsonrpc.c
lib/ofp-prop.h
lib/stream-ssl.c
lib/vconn-stream.c
lib/vlog.c
ovn/utilities/ovn-nbctl.c
ovn/utilities/ovn-sbctl.c
tests/test-reconnect.c
utilities/ovs-vsctl.c
vtep/vtep-ctl.c