Skip to content

Commit

Permalink
vlog: Make client supply semicolon for VLOG_DEFINE_THIS_MODULE.
Browse files Browse the repository at this point in the history
It's kind of odd for VLOG_DEFINE_THIS_MODULE to supply its own semicolon,
so this commit switches to the more common form.
  • Loading branch information
blp committed Oct 29, 2010
1 parent 10a2493 commit d98e600
Show file tree
Hide file tree
Showing 72 changed files with 75 additions and 75 deletions.
2 changes: 1 addition & 1 deletion build-aux/check-vlog-modules
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ vlog_modules=`

# Get the list of modules defined in some source file.
src_modules=`
git grep -h -E '^[ ]*VLOG_DEFINE(_THIS)?_MODULE\([_a-zA-Z0-9]+\)[ ]*$' \
git grep -h -E '^[ ]*VLOG_DEFINE(_THIS)?_MODULE\([_a-zA-Z0-9]+\);[ ]*$' \
| sed 's/.*(\([_a-zA-Z0-9]\{1,\}\)).*/\1/' \
| LC_ALL=C sort -u \
| xargs echo`
Expand Down
2 changes: 1 addition & 1 deletion lib/backtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "compiler.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(backtrace)
VLOG_DEFINE_THIS_MODULE(backtrace);

static uintptr_t OVS_UNUSED
get_max_stack(void)
Expand Down
2 changes: 1 addition & 1 deletion lib/coverage.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(coverage)
VLOG_DEFINE_THIS_MODULE(coverage);

static unsigned int epoch;

Expand Down
2 changes: 1 addition & 1 deletion lib/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(daemon)
VLOG_DEFINE_THIS_MODULE(daemon);

/* --detach: Should we run in the background? */
static bool detach;
Expand Down
2 changes: 1 addition & 1 deletion lib/dhcp-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "timeval.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(dhcp_client)
VLOG_DEFINE_THIS_MODULE(dhcp_client);

#define DHCLIENT_STATES \
DHCLIENT_STATE(INIT, 1 << 0) \
Expand Down
2 changes: 1 addition & 1 deletion lib/dhcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "ofpbuf.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(dhcp)
VLOG_DEFINE_THIS_MODULE(dhcp);

/* Information about a DHCP argument type. */
struct arg_type {
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(dpif_linux)
VLOG_DEFINE_THIS_MODULE(dpif_linux);

/* Datapath interface for the openvswitch Linux kernel module. */
struct dpif_linux {
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(dpif_netdev)
VLOG_DEFINE_THIS_MODULE(dpif_netdev);

/* Configuration parameters. */
enum { N_QUEUES = 2 }; /* Number of queues for dpif_recv(). */
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "valgrind.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(dpif)
VLOG_DEFINE_THIS_MODULE(dpif);

static const struct dpif_class *base_dpif_classes[] = {
#ifdef HAVE_NETLINK
Expand Down
2 changes: 1 addition & 1 deletion lib/entropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "socket-util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(entropy)
VLOG_DEFINE_THIS_MODULE(entropy);

static const char urandom[] = "/dev/urandom";

Expand Down
2 changes: 1 addition & 1 deletion lib/fatal-signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(fatal_signal)
VLOG_DEFINE_THIS_MODULE(fatal_signal);

/* Signals to catch. */
static const int fatal_signals[] = { SIGTERM, SIGINT, SIGHUP, SIGALRM };
Expand Down
2 changes: 1 addition & 1 deletion lib/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "unaligned.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(flow)
VLOG_DEFINE_THIS_MODULE(flow);

static struct arp_eth_header *
pull_arp(struct ofpbuf *packet)
Expand Down
2 changes: 1 addition & 1 deletion lib/jsonrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "timeval.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(jsonrpc)
VLOG_DEFINE_THIS_MODULE(jsonrpc);

struct jsonrpc {
struct stream *stream;
Expand Down
2 changes: 1 addition & 1 deletion lib/leak-checker.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "backtrace.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(leak_checker)
VLOG_DEFINE_THIS_MODULE(leak_checker);

#ifndef HAVE_MALLOC_HOOKS
void
Expand Down
2 changes: 1 addition & 1 deletion lib/learning-switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "vconn.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(learning_switch)
VLOG_DEFINE_THIS_MODULE(learning_switch);

struct lswitch_port {
struct hmap_node hmap_node; /* Hash node for port number. */
Expand Down
2 changes: 1 addition & 1 deletion lib/lockfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(lockfile)
VLOG_DEFINE_THIS_MODULE(lockfile);

struct lockfile {
struct hmap_node hmap_node;
Expand Down
2 changes: 1 addition & 1 deletion lib/mac-learning.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(mac_learning)
VLOG_DEFINE_THIS_MODULE(mac_learning);

/* Returns the number of seconds since 'e' was last learned. */
int
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#include "svec.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(netdev_linux)
VLOG_DEFINE_THIS_MODULE(netdev_linux);

/* These were introduced in Linux 2.6.14, so they might be missing if we have
* old headers. */
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev-vport.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "socket-util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(netdev_vport)
VLOG_DEFINE_THIS_MODULE(netdev_vport);

struct netdev_vport_notifier {
struct netdev_notifier notifier;
Expand Down
2 changes: 1 addition & 1 deletion lib/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "svec.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(netdev)
VLOG_DEFINE_THIS_MODULE(netdev);

static struct shash netdev_classes = SHASH_INITIALIZER(&netdev_classes);

Expand Down
2 changes: 1 addition & 1 deletion lib/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(netlink)
VLOG_DEFINE_THIS_MODULE(netlink);

/* Linux header file confusion causes this to be undefined. */
#ifndef SOL_NETLINK
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "vconn.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(ofp_parse)
VLOG_DEFINE_THIS_MODULE(ofp_parse);

static uint32_t
str_to_u32(const char *str)
Expand Down
2 changes: 1 addition & 1 deletion lib/ofp-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "random.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(ofp_util)
VLOG_DEFINE_THIS_MODULE(ofp_util);

/* Rate limit for OpenFlow message parse errors. These always indicate a bug
* in the peer and so there's not much point in showing a lot of them. */
Expand Down
2 changes: 1 addition & 1 deletion lib/ovsdb-error.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(ovsdb_error)
VLOG_DEFINE_THIS_MODULE(ovsdb_error);

struct ovsdb_error {
const char *tag; /* String for "error" member. */
Expand Down
2 changes: 1 addition & 1 deletion lib/ovsdb-idl.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(ovsdb_idl)
VLOG_DEFINE_THIS_MODULE(ovsdb_idl);

/* An arc from one idl_row to another. When row A contains a UUID that
* references row B, this is represented by an arc from A (the source) to B
Expand Down
2 changes: 1 addition & 1 deletion lib/pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "ofpbuf.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(pcap)
VLOG_DEFINE_THIS_MODULE(pcap);

struct pcap_hdr {
uint32_t magic_number; /* magic number */
Expand Down
2 changes: 1 addition & 1 deletion lib/poll-loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "timeval.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(poll_loop)
VLOG_DEFINE_THIS_MODULE(poll_loop);

/* An event that will wake the following call to poll_block(). */
struct poll_waiter {
Expand Down
2 changes: 1 addition & 1 deletion lib/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(process)
VLOG_DEFINE_THIS_MODULE(process);

struct process {
struct list node;
Expand Down
2 changes: 1 addition & 1 deletion lib/rconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "vconn.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(rconn)
VLOG_DEFINE_THIS_MODULE(rconn);

#define STATES \
STATE(VOID, 1 << 0) \
Expand Down
2 changes: 1 addition & 1 deletion lib/reconnect.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "poll-loop.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(reconnect)
VLOG_DEFINE_THIS_MODULE(reconnect);

#define STATES \
STATE(VOID, 1 << 0) \
Expand Down
2 changes: 1 addition & 1 deletion lib/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "ofpbuf.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(rtnetlink)
VLOG_DEFINE_THIS_MODULE(rtnetlink);

/* rtnetlink socket. */
static struct nl_sock *notify_sock;
Expand Down
2 changes: 1 addition & 1 deletion lib/socket-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(socket_util)
VLOG_DEFINE_THIS_MODULE(socket_util);

/* Sets 'fd' to non-blocking mode. Returns 0 if successful, otherwise a
* positive errno value. */
Expand Down
2 changes: 1 addition & 1 deletion lib/stream-fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "stream.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(stream_fd)
VLOG_DEFINE_THIS_MODULE(stream_fd);

/* Active file descriptor stream. */

Expand Down
2 changes: 1 addition & 1 deletion lib/stream-ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include "timeval.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(stream_ssl)
VLOG_DEFINE_THIS_MODULE(stream_ssl);

/* Active SSL. */

Expand Down
2 changes: 1 addition & 1 deletion lib/stream-tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "stream-fd.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(stream_tcp)
VLOG_DEFINE_THIS_MODULE(stream_tcp);

/* Active TCP. */

Expand Down
2 changes: 1 addition & 1 deletion lib/stream-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "stream-fd.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(stream_unix)
VLOG_DEFINE_THIS_MODULE(stream_unix);

/* Active UNIX socket. */

Expand Down
2 changes: 1 addition & 1 deletion lib/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(stream)
VLOG_DEFINE_THIS_MODULE(stream);

/* State of an active stream.*/
enum stream_state {
Expand Down
2 changes: 1 addition & 1 deletion lib/svec.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(svec)
VLOG_DEFINE_THIS_MODULE(svec);

void
svec_init(struct svec *svec)
Expand Down
2 changes: 1 addition & 1 deletion lib/timeval.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(timeval)
VLOG_DEFINE_THIS_MODULE(timeval);

/* The clock to use for measuring time intervals. This is CLOCK_MONOTONIC by
* preference, but on systems that don't have a monotonic clock we fall back
Expand Down
2 changes: 1 addition & 1 deletion lib/unixctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include <time.h>
#endif

VLOG_DEFINE_THIS_MODULE(unixctl)
VLOG_DEFINE_THIS_MODULE(unixctl);

struct unixctl_command {
unixctl_cb_func *cb;
Expand Down
2 changes: 1 addition & 1 deletion lib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "coverage.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(util)
VLOG_DEFINE_THIS_MODULE(util);

const char *program_name;

Expand Down
2 changes: 1 addition & 1 deletion lib/vconn-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "vconn.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(vconn_stream)
VLOG_DEFINE_THIS_MODULE(vconn_stream);

/* Active stream socket vconn. */

Expand Down
2 changes: 1 addition & 1 deletion lib/vconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include "util.h"
#include "vlog.h"

VLOG_DEFINE_THIS_MODULE(vconn)
VLOG_DEFINE_THIS_MODULE(vconn);

/* State of an active vconn.*/
enum vconn_state {
Expand Down
2 changes: 1 addition & 1 deletion lib/vlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "unixctl.h"
#include "util.h"

VLOG_DEFINE_THIS_MODULE(vlog)
VLOG_DEFINE_THIS_MODULE(vlog);

/* Name for each logging level. */
static const char *level_names[VLL_N_LEVELS] = {
Expand Down
Loading

0 comments on commit d98e600

Please sign in to comment.