diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-11-01 15:43:44 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-11-01 15:50:09 +0100 |
commit | 04b52d590f9c47316e8eca9eeccb8084991f2f55 (patch) | |
tree | 5a7ddd547d7f427abf2085ea7d51cc2ebd2254db /src/tests/test-at-serial-port.c | |
parent | deaeeec3678f0996a58fae8be1e365e463ee9400 (diff) |
tests: enable logging if 'ENABLE_TEST_MESSAGE_TRACES' is defined
Diffstat (limited to 'src/tests/test-at-serial-port.c')
-rw-r--r-- | src/tests/test-at-serial-port.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/test-at-serial-port.c b/src/tests/test-at-serial-port.c index 1e7ff45f..0b5f5060 100644 --- a/src/tests/test-at-serial-port.c +++ b/src/tests/test-at-serial-port.c @@ -71,7 +71,17 @@ _mm_log (const char *loc, const char *fmt, ...) { +#if defined ENABLE_TEST_MESSAGE_TRACES /* Dummy log function */ + va_list args; + gchar *msg; + + 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) |