diff options
author | Ben Pfaff <blp@nicira.com> | 2010-07-16 11:02:49 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-07-21 15:47:09 -0700 |
commit | 5136ce492c414f377f7be9ae32b259abb9f76580 (patch) | |
tree | 3590fa980be1d23746938e60ac992849d0b39edc /ovsdb/file.c | |
parent | 9200fb9ef9a1c55a76e4c4aa789f3fb0a76f0ed1 (diff) |
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 'ovsdb/file.c')
-rw-r--r-- | ovsdb/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/file.c b/ovsdb/file.c index f0913e9d..846f5566 100644 --- a/ovsdb/file.c +++ b/ovsdb/file.c @@ -36,10 +36,10 @@ #include "transaction.h" #include "uuid.h" #include "util.h" - -#define THIS_MODULE VLM_ovsdb_file #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(ovsdb_file) + /* Minimum number of milliseconds between database compactions. */ #define COMPACT_MIN_MSEC (10 * 60 * 1000) /* 10 minutes. */ |