mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
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>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
|
||||
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -455,7 +455,7 @@ ssl_connect(struct stream *stream)
|
||||
: "SSL_accept"), retval, error, &unused);
|
||||
shutdown(sslv->fd, SHUT_RDWR);
|
||||
stream_report_content(sslv->head, sslv->n_head, STREAM_SSL,
|
||||
THIS_MODULE, stream_get_name(stream));
|
||||
&this_module, stream_get_name(stream));
|
||||
return EPROTO;
|
||||
}
|
||||
} else if (bootstrap_ca_cert) {
|
||||
|
Reference in New Issue
Block a user