From 5136ce492c414f377f7be9ae32b259abb9f76580 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 16 Jul 2010 11:02:49 -0700 Subject: 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. --- lib/lockfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/lockfile.c') diff --git a/lib/lockfile.c b/lib/lockfile.c index 100440e93..84bfb3c04 100644 --- a/lib/lockfile.c +++ b/lib/lockfile.c @@ -29,10 +29,10 @@ #include "hmap.h" #include "timeval.h" #include "util.h" - -#define THIS_MODULE VLM_lockfile #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(lockfile) + struct lockfile { struct hmap_node hmap_node; char *name; -- cgit v1.2.1