aboutsummaryrefslogtreecommitdiff
path: root/plugins/ublox/tests/test-modem-helpers-ublox.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ublox/tests/test-modem-helpers-ublox.c')
-rw-r--r--plugins/ublox/tests/test-modem-helpers-ublox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ublox/tests/test-modem-helpers-ublox.c b/plugins/ublox/tests/test-modem-helpers-ublox.c
index 5fad8a73..17a46417 100644
--- a/plugins/ublox/tests/test-modem-helpers-ublox.c
+++ b/plugins/ublox/tests/test-modem-helpers-ublox.c
@@ -986,17 +986,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)