diff options
Diffstat (limited to 'plugins/linktop/tests/test-modem-helpers-linktop.c')
-rw-r--r-- | plugins/linktop/tests/test-modem-helpers-linktop.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/linktop/tests/test-modem-helpers-linktop.c b/plugins/linktop/tests/test-modem-helpers-linktop.c index 27119bbb..827d044f 100644 --- a/plugins/linktop/tests/test-modem-helpers-linktop.c +++ b/plugins/linktop/tests/test-modem-helpers-linktop.c @@ -25,8 +25,6 @@ #include "mm-modem-helpers.h" #include "mm-modem-helpers-linktop.h" -/* #define ENABLE_TEST_MESSAGE_TRACES */ - /*****************************************************************************/ typedef struct { @@ -68,17 +66,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) |