summaryrefslogtreecommitdiff
path: root/unit/test-gattrib.c
diff options
context:
space:
mode:
authorMichael Janssen <jamuraa@chromium.org>2014-10-31 11:14:59 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-11-03 17:17:12 +0200
commit46d35351cce71fc2873921628c159b3f9bf5069d (patch)
tree2fa6e907b83d10f7cadb7d2a74234616f292e4c7 /unit/test-gattrib.c
parent90a8d80f8f53b239875235d5b30e7d5ff1c1288a (diff)
downloadbluez-46d35351cce71fc2873921628c159b3f9bf5069d.tar.gz
unit/gattrib: Only init log on --verbose
Diffstat (limited to 'unit/test-gattrib.c')
-rw-r--r--unit/test-gattrib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unit/test-gattrib.c b/unit/test-gattrib.c
index dcc59cefc..9ced45ccc 100644
--- a/unit/test-gattrib.c
+++ b/unit/test-gattrib.c
@@ -557,7 +557,8 @@ int main(int argc, char *argv[])
{
g_test_init(&argc, &argv, NULL);
- __btd_log_init("*", 0);
+ if (g_test_verbose())
+ __btd_log_init("*", 0);
/*
* Test the GAttrib API behavior