summaryrefslogtreecommitdiff
path: root/lib/netdev-linux.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-07-16 11:02:49 -0700
committerBen Pfaff <blp@nicira.com>2010-07-21 15:47:09 -0700
commit5136ce492c414f377f7be9ae32b259abb9f76580 (patch)
tree3590fa980be1d23746938e60ac992849d0b39edc /lib/netdev-linux.c
parent9200fb9ef9a1c55a76e4c4aa789f3fb0a76f0ed1 (diff)
downloadopenvswitch-5136ce492c414f377f7be9ae32b259abb9f76580.tar.gz
vlog: Introduce VLOG_DEFINE_THIS_MODULE for declaring vlog module in use.
Adding a macro to define the vlog module in use adds a level of indirection, which makes it easier to change how the vlog module must be defined. A followup commit needs to do that, so getting these widespread changes out of the way first should make that commit easier to review.
Diffstat (limited to 'lib/netdev-linux.c')
-rw-r--r--lib/netdev-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 09a461296..a20a1c4d1 100644
--- a/lib/netdev-linux.c
+++ b/lib/netdev-linux.c
@@ -61,9 +61,9 @@
#include "socket-util.h"
#include "shash.h"
#include "svec.h"
-
-#define THIS_MODULE VLM_netdev_linux
#include "vlog.h"
+
+VLOG_DEFINE_THIS_MODULE(netdev_linux)
/* These were introduced in Linux 2.6.14, so they might be missing if we have
* old headers. */