aboutsummaryrefslogtreecommitdiff
path: root/plugins/mbm/tests/test-modem-helpers-mbm.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mbm/tests/test-modem-helpers-mbm.c')
-rw-r--r--plugins/mbm/tests/test-modem-helpers-mbm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/mbm/tests/test-modem-helpers-mbm.c b/plugins/mbm/tests/test-modem-helpers-mbm.c
index 8c573af4..cca121b0 100644
--- a/plugins/mbm/tests/test-modem-helpers-mbm.c
+++ b/plugins/mbm/tests/test-modem-helpers-mbm.c
@@ -28,8 +28,6 @@
#include "mm-modem-helpers.h"
#include "mm-modem-helpers-mbm.h"
-#define ENABLE_TEST_MESSAGE_TRACES
-
/*****************************************************************************/
/* Test *E2IPCFG responses */
@@ -262,17 +260,17 @@ _mm_log (const char *loc,
const char *fmt,
...)
{
-#if defined ENABLE_TEST_MESSAGE_TRACES
- /* Dummy log function */
va_list args;
gchar *msg;
+ if (!g_test_verbose ())
+ return;
+
va_start (args, fmt);
msg = g_strdup_vprintf (fmt, args);
va_end (args);
g_print ("%s\n", msg);
g_free (msg);
-#endif
}
int main (int argc, char **argv)