summaryrefslogtreecommitdiff
path: root/tests/virnetsockettest.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2014-02-28 12:16:17 +0000
committerDaniel P. Berrange <berrange@redhat.com>2014-03-18 14:29:22 +0000
commit2835c1e730c01f52c41027e5241fa0ad465fce56 (patch)
treeb75253aa0f1e35071cd30b6a904c351a3ab3dd9e /tests/virnetsockettest.c
parent098dd79ee2657347a7585069a386a08eed8199e3 (diff)
downloadlibvirt-2835c1e730c01f52c41027e5241fa0ad465fce56.tar.gz
Add virLogSource variables to all source files
Any source file which calls the logging APIs now needs to have a VIR_LOG_INIT("source.name") declaration at the start of the file. This provides a static variable of the virLogSource type. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/virnetsockettest.c')
-rw-r--r--tests/virnetsockettest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c
index 51b7a6a153..a04e576c67 100644
--- a/tests/virnetsockettest.c
+++ b/tests/virnetsockettest.c
@@ -39,6 +39,8 @@
#define VIR_FROM_THIS VIR_FROM_RPC
+VIR_LOG_INIT("tests.netsockettest");
+
#if HAVE_IFADDRS_H
# define BASE_PORT 5672