aboutsummaryrefslogtreecommitdiff
path: root/lib/stream.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-07-16 10:53:14 -0700
committerBen Pfaff <blp@nicira.com>2010-07-21 15:47:09 -0700
commit480ce8abca4ae262a4148fe757aebe3e0ddba6f6 (patch)
treecea1143781be3a75aab5c02c516a22fc7ca3d546 /lib/stream.c
parent5136ce492c414f377f7be9ae32b259abb9f76580 (diff)
vlog: Make the vlog module catalog program-specific.
Until now, the collection of vlog modules supported by a given OVS program was not specific to that program. That means that, for example, even though ovs-dpctl does not have anything to do with jsonrpc, it still has a vlog module for it. This is confusing, at best. This commit fixes the problem on some systems, in particular on ones that use GCC and the GNU linker. It uses the feature of the GNU linker described in its manual as: If an orphaned section's name is representable as a C identifier then the linker will automatically see PROVIDE two symbols: __start_SECNAME and __end_SECNAME, where SECNAME is the name of the section. These indicate the start address and end address of the orphaned section respectively. Systems that don't support these features retain the earlier behavior. This commit also fixes the annoyance that modifying lib/vlog-modules.def causes all sources files that #include "vlog.h" to recompile.
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stream.c b/lib/stream.c
index 4d894e7e..43c95b6b 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -769,7 +769,7 @@ stream_content_type_to_string(enum stream_content_type type)
void
stream_report_content(const void *data, size_t size,
enum stream_content_type expected_type,
- enum vlog_module module, const char *stream_name)
+ struct vlog_module *module, const char *stream_name)
{
static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 5);
enum stream_content_type actual_type;